web/SOURCES/nodejs-shelljs_fix-tests.patch

13 lines
512 B
Diff

diff --git a/scripts/run-tests.js b/scripts/run-tests.js
index 1b361da..a0be383 100755
--- a/scripts/run-tests.js
+++ b/scripts/run-tests.js
@@ -10,6 +10,7 @@ var failed = false;
cd(__dirname + '/../test');
ls('*.js').forEach(function(file) {
echo('Running test:', file);
+ if (file === "shjs.js") return;
if (exec(JSON.stringify(process.execPath)+' '+file).code !== 123) { // 123 avoids false positives (e.g. premature exit)
failed = true;
echo('*** TEST FAILED! (missing exit code "123")');