test: report hexadecimal status codes on windows (#19597)
This commit is contained in:
Родитель
3011a0f14f
Коммит
d0800aa200
|
@ -123,7 +123,8 @@ async function runRemoteBasedElectronTests () {
|
|||
stdio: 'inherit'
|
||||
})
|
||||
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'
|
||||
})
|
||||
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}.`)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче