Run main process tests with ATOM_GITHUB_INLINE_GIT_EXEC set

This commit is contained in:
Michelle Tilley
2017-05-08 15:25:20 +02:00
parent 655cbf2d7e
commit d5ceae806b

View File

@@ -38,7 +38,10 @@ function runCoreMainProcessTests (callback) {
]
console.log('Executing core main process tests'.bold.green)
const cp = childProcess.spawn(executablePath, testArguments, {stdio: 'inherit'})
const cp = childProcess.spawn(executablePath, testArguments, {
stdio: 'inherit',
env: Object.assign({}, process.env, {ATOM_GITHUB_INLINE_GIT_EXEC: 'true'})
})
cp.on('error', error => { callback(error) })
cp.on('close', exitCode => { callback(null, exitCode) })
}