Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

test(gan): use portable Bash lookup on Windows

haelyracce8f6020653
diff --git a/tests/gan-harness.test.js b/tests/gan-harness.test.js
index 5118ffa5d..d2c404a47 100644
--- a/tests/gan-harness.test.js
+++ b/tests/gan-harness.test.js
@@ -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');