From 4cd270493aeba0a9fad1661258c7ccc286934f53 Mon Sep 17 00:00:00 2001 From: Tom Hickson Date: Mon, 6 Apr 2020 13:03:07 +0100 Subject: [PATCH 1/3] Prefix the cli test with 'node' so it works on windows Shouldnt provide any issues for other systems I hope --- test/node-tests/cli/cli.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/node-tests/cli/cli.test.js b/test/node-tests/cli/cli.test.js index 9e0a0a5acd..b79cd71934 100644 --- a/test/node-tests/cli/cli.test.js +++ b/test/node-tests/cli/cli.test.js @@ -4,7 +4,7 @@ const path = require('path') const cp = require('child_process') function run (args, done) { - cp.exec('bin/cli.js ' + args, function (e, r) { + cp.exec('node bin/cli.js ' + args, function (e, r) { done(e, r.replace(/\n$/g, '')) }) } From 268b5949a817fd416dbada72f1334ccaac0e3dfa Mon Sep 17 00:00:00 2001 From: Tom Hickson Date: Mon, 6 Apr 2020 14:11:05 +0100 Subject: [PATCH 2/3] Revert "Prefix the cli test with 'node' so it works on windows" This reverts commit 4cd270493aeba0a9fad1661258c7ccc286934f53. --- test/node-tests/cli/cli.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/node-tests/cli/cli.test.js b/test/node-tests/cli/cli.test.js index b79cd71934..9e0a0a5acd 100644 --- a/test/node-tests/cli/cli.test.js +++ b/test/node-tests/cli/cli.test.js @@ -4,7 +4,7 @@ const path = require('path') const cp = require('child_process') function run (args, done) { - cp.exec('node bin/cli.js ' + args, function (e, r) { + cp.exec('bin/cli.js ' + args, function (e, r) { done(e, r.replace(/\n$/g, '')) }) } From 6bff420b8f75fffe100c6d091d67fe8b84c61803 Mon Sep 17 00:00:00 2001 From: Tom Hickson Date: Mon, 6 Apr 2020 14:11:15 +0100 Subject: [PATCH 3/3] Revert "Revert "Prefix the cli test with 'node' so it works on windows"" This reverts commit 268b5949a817fd416dbada72f1334ccaac0e3dfa. --- test/node-tests/cli/cli.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/node-tests/cli/cli.test.js b/test/node-tests/cli/cli.test.js index 9e0a0a5acd..b79cd71934 100644 --- a/test/node-tests/cli/cli.test.js +++ b/test/node-tests/cli/cli.test.js @@ -4,7 +4,7 @@ const path = require('path') const cp = require('child_process') function run (args, done) { - cp.exec('bin/cli.js ' + args, function (e, r) { + cp.exec('node bin/cli.js ' + args, function (e, r) { done(e, r.replace(/\n$/g, '')) }) }