mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-23 10:05:12 +02:00
test(gan): use portable Bash lookup on Windows
This commit is contained in:
@@ -27,7 +27,8 @@ function test(name, fn) {
|
||||
}
|
||||
|
||||
function runHarnessScript(script, args = []) {
|
||||
const result = spawnSync('/bin/bash', ['-c', script, 'gan-harness-test', ...args], {
|
||||
const bashExecutable = process.platform === 'win32' ? 'bash' : '/bin/bash';
|
||||
const result = spawnSync(bashExecutable, ['-c', script, 'gan-harness-test', ...args], {
|
||||
encoding: 'utf8',
|
||||
});
|
||||
assert.strictEqual(result.status, 0, result.stderr || 'GAN harness script failed');
|
||||
|
||||
Reference in New Issue
Block a user