mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Okay fine let's do this the dumb way
This commit is contained in:
10
script/test
10
script/test
@@ -69,7 +69,15 @@ function runCoreRenderProcessTests (callback) {
|
||||
|
||||
console.log('Executing core render process tests'.bold.green)
|
||||
const cp = childProcess.spawn(executablePath, testArguments, {stdio: 'inherit', env: testEnv})
|
||||
cp.on('error', error => { callback(error) })
|
||||
cp.on('error', error => {
|
||||
try {
|
||||
const projectSpecLog = fs.readFileSync('project-spec.log', {encoding: 'utf8'})
|
||||
console.log(`project-spec log:\n${projectSpecLog}\n`)
|
||||
} catch (e) {
|
||||
console.error(`Unable to open log file:\n${e.stack}`)
|
||||
}
|
||||
callback(error)
|
||||
})
|
||||
cp.on('close', exitCode => { callback(null, exitCode) })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user