Quick fix for runtests-parallel

This commit is contained in:
Wesley Wigham 2016-06-10 10:53:35 -07:00
parent 9dcaf2b6f3
commit d756806539
No known key found for this signature in database
GPG Key ID: D59F87F60C5400C9

View File

@ -246,6 +246,13 @@ function runTests(taskConfigsFolder, run, options, cb) {
}
}
var nodeModulesPathPrefix = path.resolve("./node_modules/.bin/") + path.delimiter;
if (process.env.path !== undefined) {
process.env.path = nodeModulesPathPrefix + process.env.path;
} else if (process.env.PATH !== undefined) {
process.env.PATH = nodeModulesPathPrefix + process.env.PATH;
}
function spawnProcess(cmd, options) {
var shell = process.platform === "win32" ? "cmd" : "/bin/sh";
var prefix = process.platform === "win32" ? "/c" : "-c";