mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-05-18 23:03:06 +08:00
test: skip insaits monitor subprocesses without python
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user