Use start command to launch atom.exe

This commit is contained in:
Matt Colyer
2013-12-17 10:33:39 -08:00
parent 2ae46734db
commit ca3d1e869c

View File

@@ -49,10 +49,15 @@ module.exports = (grunt) ->
resourcePath = process.cwd()
coreSpecsPath = path.resolve('spec')
options =
cmd: appPath
args: ['--test', "--resource-path=#{resourcePath}", "--spec-directory=#{coreSpecsPath}"]
console.log options
if process.platform is 'darwin'
options =
cmd: appPath
args: ['--test', "--resource-path=#{resourcePath}", "--spec-directory=#{coreSpecsPath}"]
else if process.platform is 'win32'
options =
cmd: 'start'
args: ['/wait', appPath, '--test', "--resource-path=#{resourcePath}", "--spec-directory=#{coreSpecsPath}"]
spawn options, (error, results, code) ->
packageSpecQueue.concurrency = 2
callback(null, error)