The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
fix: preserve child process failure in run-all exit count
Geronimo731afd23c5ef
diff --git a/tests/run-all.js b/tests/run-all.jsindex 960f5de4e..f7ea17ade 100644--- a/tests/run-all.js+++ b/tests/run-all.js@@ -7,7 +7,7 @@ const fs = require('fs');const testsDir = __dirname;const repoRoot = path.resolve(testsDir, '..');const TEST_GLOB = 'tests/**/*.test.js';-const filter = (process.argv[2] || '').split(path.sep).join('/');+const filter = (((process.argv || [])[2]) || '').split(path.sep).join('/');function matchesTestGlob(relativePath) {const normalized = relativePath.split(path.sep).join('/');@@ -154,10 +154,7 @@ for (const testFile of testFiles) {filesFailed += 1;failedFiles.push(displayPath);totalPassed += counts.passed;- totalFailed += counts.definite ? counts.failed : Math.max(counts.failed, 1);- if (processFailed && !counts.definite) {- totalFailed += 1;- }+ totalFailed += processFailed ? Math.max(counts.failed, 1) : counts.failed;console.log(`✗ ${displayPath} ${failureReason}`);annotateFailure(displayPath, failureReason, combined);} else {