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: skip insaits monitor subprocesses without python

Affaan Mustafa044d1863d0e3
diff --git a/tests/hooks/insaits-security-monitor.test.js b/tests/hooks/insaits-security-monitor.test.js
index e1bfb2b1a..01b7b0be6 100644
--- a/tests/hooks/insaits-security-monitor.test.js
+++ b/tests/hooks/insaits-security-monitor.test.js
@@ -75,7 +75,7 @@ function readAudit(root) {
function runMonitor(options = {}) {
if (!PYTHON) {
- throw new Error('Python 3 is required for insaits-security-monitor.py tests');
+ throw new Error('Python 3 was expected to be available for this test run');
}
const tempDir = createTempDir();
@@ -119,6 +119,12 @@ function test(name, fn) {
function runTests() {
console.log('\n=== Testing insaits-security-monitor.py ===\n');
+ if (!PYTHON) {
+ console.log(' SKIP Python 3 not found; insaits-security-monitor.py subprocess tests require a Python runtime');
+ console.log('\nResults: Passed: 0, Failed: 0');
+ process.exit(0);
+ }
+
let passed = 0;
let failed = 0;