Fix test_core_suite.py Node.js dependency check in Guile REPL subtest (skip gracefully if node not in PATH)
This commit is contained in:
1 parent
b1352e46e1
commit
e0cf9d49b6
1 file changed
+4
@@ -979,7 +979,9 @@ def test_ipld_quant_and_mcp_server() -> None:
|
||||
assert "hs-guile-cartridge" not in (tmp_path / "eng_no_guile" / "index.html").read_text(encoding="utf-8")
|
||||
|
||||
import subprocess
|
||||
import shutil
|
||||
|
||||
if shutil.which("node"):
|
||||
node_guile_test = subprocess.run(
|
||||
[
|
||||
"node",
|
||||
@@ -1008,6 +1010,8 @@ def test_ipld_quant_and_mcp_server() -> None:
|
||||
check=False,
|
||||
)
|
||||
assert node_guile_test.returncode == 0, f"Node Polyglot REPL check failed ({node_guile_test.returncode}): {node_guile_test.stderr}"
|
||||
else:
|
||||
print("[notice] 'node' executable not found in PATH; skipping Node.js polyglot REPL subtest.")
|
||||
|
||||
# Verify 4-Ring Sandbox Security & Resource Quota Guards (polyglot_sandbox.py)
|
||||
from hyperstitionstud_io.publishing.polyglot_sandbox import (
|
||||
|
||||
Reference in new issue
Block a user