diff --git a/lib/runner.js b/lib/runner.js index 2e25e0c..c24cada 100644 --- a/lib/runner.js +++ b/lib/runner.js @@ -22,11 +22,16 @@ function runner(options, next) { /*jslint unparam:true*/ exec(args.join(' ').trim(), function (err, stdout, stderr) { - return parseOutput(stderr, next); + }).on('exit', function (exitCode) { + process.exitCode = exitCode; }); /*jslint unparam:false*/ }); } +process.on('exit', function () { + process.exit(process.exitCode); +}); + module.exports = runner; diff --git a/package.json b/package.json index 3717259..13f1c26 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,9 @@ }, "devDependencies": { "grunt": "~0.4.1", + "grunt-cli": "^1.2.0", "grunt-jslint": "~1.1.12", - "vows": "~0.7.0", - "grunt-vows": "~0.4.0" + "grunt-vows": "~0.4.0", + "vows": "~0.7.0" } }