Skip to content

Commit d756806

Browse files
committed
Quick fix for runtests-parallel
1 parent 9dcaf2b commit d756806

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/mocha-parallel.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,13 @@ function runTests(taskConfigsFolder, run, options, cb) {
246246
}
247247
}
248248

249+
var nodeModulesPathPrefix = path.resolve("./node_modules/.bin/") + path.delimiter;
250+
if (process.env.path !== undefined) {
251+
process.env.path = nodeModulesPathPrefix + process.env.path;
252+
} else if (process.env.PATH !== undefined) {
253+
process.env.PATH = nodeModulesPathPrefix + process.env.PATH;
254+
}
255+
249256
function spawnProcess(cmd, options) {
250257
var shell = process.platform === "win32" ? "cmd" : "/bin/sh";
251258
var prefix = process.platform === "win32" ? "/c" : "-c";

0 commit comments

Comments
 (0)