Explicitly put the logfile in ${HOME}

This commit is contained in:
Ash Wilson
2017-08-03 15:32:18 -04:00
parent bb91bb58e5
commit 94c91c57b1
2 changed files with 4 additions and 4 deletions

View File

@@ -71,7 +71,7 @@ function runCoreRenderProcessTests (callback) {
const cp = childProcess.spawn(executablePath, testArguments, {stdio: 'inherit', env: testEnv})
cp.on('error', error => {
try {
const projectSpecLog = fs.readFileSync('project-spec.log', {encoding: 'utf8'})
const projectSpecLog = fs.readFileSync(path.join(process.env.HOME, '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}`)