mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Explicitly put the logfile in ${HOME}
This commit is contained in:
@@ -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}`)
|
||||
|
||||
@@ -6,8 +6,8 @@ path = require 'path'
|
||||
{Directory} = require 'pathwatcher'
|
||||
GitRepository = require '../src/git-repository'
|
||||
|
||||
logToFile = text ->
|
||||
fs.appendFileSync 'project-spec.log', text
|
||||
logToFile = (text) ->
|
||||
fs.appendFileSync path.join(process.env.HOME, 'project-spec.log'), text
|
||||
|
||||
describe "Project", ->
|
||||
beforeEach ->
|
||||
@@ -19,7 +19,7 @@ describe "Project", ->
|
||||
afterEach ->
|
||||
waitsForPromise ->
|
||||
new Promise (resolve, reject) ->
|
||||
temp.cleanup err ->
|
||||
temp.cleanup (err) ->
|
||||
if err?
|
||||
reject(err)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user