From fcef85cb87dd6ab53b40221d02bb7e79db6f88ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E5=8D=9A=E6=B7=B3?= Date: Wed, 12 Aug 2026 12:22:07 +0800 Subject: [PATCH] test: skip GAN shell checks on Windows --- tests/gan-harness.test.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/gan-harness.test.js b/tests/gan-harness.test.js index d2c404a47..4c42111fc 100644 --- a/tests/gan-harness.test.js +++ b/tests/gan-harness.test.js @@ -14,6 +14,14 @@ const repoRoot = path.resolve(__dirname, '..'); const harnessPath = path.join(repoRoot, 'scripts', 'gan-harness.sh'); const harnessSource = fs.readFileSync(harnessPath, 'utf8'); +if (process.platform === 'win32') { + console.log('\n=== GAN harness helpers ===\n'); + console.log(' - skipped on Windows; GAN harness shell helpers are Unix-only'); + console.log('\nPassed: 0'); + console.log('Failed: 0'); + process.exit(0); +} + function test(name, fn) { try { fn();