Run with cmd.exe

This commit is contained in:
Matt Colyer
2013-12-17 10:49:15 -08:00
parent ca3d1e869c
commit bf0015f6cc

View File

@@ -55,9 +55,10 @@ module.exports = (grunt) ->
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}"]
cmd: process.env.comspec
args: ['/c', 'start', '/wait', appPath, '--test', "--resource-path=#{resourcePath}", "--spec-directory=#{coreSpecsPath}"]
console.log(options)
spawn options, (error, results, code) ->
packageSpecQueue.concurrency = 2
callback(null, error)