test: skip insaits monitor subprocesses without python

This commit is contained in:
Affaan Mustafa
2026-05-18 00:47:05 -04:00
parent 43822b9c1a
commit 044d1863d0

View File

@@ -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;