Write to stderr instead, for quicker flushing

This commit is contained in:
Matt Colyer
2013-12-18 15:12:30 -08:00
parent 171c3e018b
commit 91d1c2914e

View File

@@ -39,7 +39,7 @@ module.exports = (grunt) ->
grunt.verbose.writeln "Launching #{path.basename(packagePath)} specs."
spawn options, (error, results, code) ->
if process.platform is 'win32'
process.stdout.write(fs.readFileSync(path.join(packagePath, 'ci.log')))
process.stderr.write(fs.readFileSync(path.join(packagePath, 'ci.log')))
fs.unlinkSync(path.join(packagePath, 'ci.log'))
failedPackages.push path.basename(packagePath) if error
@@ -77,7 +77,7 @@ module.exports = (grunt) ->
spawn options, (error, results, code) ->
if process.platform is 'win32'
process.stdout.write(fs.readFileSync('ci.log'))
process.stderr.write(fs.readFileSync('ci.log'))
fs.unlinkSync('ci.log')
else
# TODO: Restore concurrency on Windows