test: report hexadecimal status codes on windows (#19597)
This commit is contained in:
		
					parent
					
						
							
								3011a0f14f
							
						
					
				
			
			
				commit
				
					
						d0800aa200
					
				
			
		
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -123,7 +123,8 @@ async function runRemoteBasedElectronTests () { | ||||||
|     stdio: 'inherit' |     stdio: 'inherit' | ||||||
|   }) |   }) | ||||||
|   if (status !== 0) { |   if (status !== 0) { | ||||||
|     throw new Error(`Electron tests failed with code ${status}.`) |     const textStatus = process.platform === 'win32' ? `0x${status.toString(16)}` : status.toString() | ||||||
|  |     throw new Error(`Electron tests failed with code ${textStatus}.`) | ||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @ -135,7 +136,8 @@ async function runMainProcessElectronTests () { | ||||||
|     stdio: 'inherit' |     stdio: 'inherit' | ||||||
|   }) |   }) | ||||||
|   if (status !== 0) { |   if (status !== 0) { | ||||||
|     throw new Error(`Electron tests failed with code ${status}.`) |     const textStatus = process.platform === 'win32' ? `0x${status.toString(16)}` : status.toString() | ||||||
|  |     throw new Error(`Electron tests failed with code ${textStatus}.`) | ||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jeremy Apthorp
				Jeremy Apthorp