test: do not write to mastodon.log in travis (#1761)
* test: do not write to mastodon.log in travis * fixup
This commit is contained in:
parent
6447326f5c
commit
5348b3ccce
|
@ -109,7 +109,9 @@ async function runMastodon () {
|
|||
await writeFile(installedFile, '', 'utf8')
|
||||
}
|
||||
const promise = spawn('foreman', ['start'], { cwd, env })
|
||||
const log = fs.createWriteStream('mastodon.log', { flags: 'a' })
|
||||
// don't bother writing to mastodon.log in Travis; we can't read the file anyway
|
||||
const logFile = process.env.TRAVIS === 'true' ? '/dev/null' : 'mastodon.log'
|
||||
const log = fs.createWriteStream(logFile, { flags: 'a' })
|
||||
childProc = promise.childProcess
|
||||
childProc.stdout.pipe(log)
|
||||
childProc.stderr.pipe(log)
|
||||
|
|
Loading…
Reference in New Issue