Default to the appveyor home dir

This commit is contained in:
Ash Wilson 2017-08-03 18:15:39 -04:00
parent 418fe48bad
commit 095f6da379
No known key found for this signature in database
GPG Key ID: 437900036C5A4049
2 changed files with 2 additions and 2 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(path.join(process.env.HOME, 'project-spec.log'), {encoding: 'utf8'})
const projectSpecLog = fs.readFileSync(path.join(process.env.HOME || 'C:\\Users\\appveyor', '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}`)

View File

@ -7,7 +7,7 @@ path = require 'path'
GitRepository = require '../src/git-repository'
logToFile = (text) ->
fs.appendFileSync path.join(process.env.HOME, 'project-spec.log'), text
fs.appendFileSync path.join(process.env.HOME || 'C:\\Users\\appveyor', 'project-spec.log'), text
describe "Project", ->
beforeEach ->