From e22c973d558cc5f4365453783c313c839f81fe79 Mon Sep 17 00:00:00 2001 From: Martin Vogel Date: Sun, 11 Oct 2026 20:42:19 +0200 Subject: [PATCH] Use the current Bash in subprocess audit fixtures Signed-off-by: Martin Vogel --- tests/test_security_audit_subprocess_calls.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_security_audit_subprocess_calls.sh b/tests/test_security_audit_subprocess_calls.sh index 9785504a3..e41740379 100644 --- a/tests/test_security_audit_subprocess_calls.sh +++ b/tests/test_security_audit_subprocess_calls.sh @@ -6,7 +6,7 @@ set -euo pipefail ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" -python3 - "$ROOT" <<'PY' +python3 - "$ROOT" "$BASH" <<'PY' from pathlib import Path import shutil import subprocess @@ -14,6 +14,7 @@ import sys import tempfile root = Path(sys.argv[1]) +bash_path = sys.argv[2] failures = [] passed = 0 @@ -31,7 +32,7 @@ with tempfile.TemporaryDirectory(prefix="cbm-security-subprocess-") as directory allowances, encoding="utf-8" ) result = subprocess.run( - ["bash", str(fixture / "scripts" / "security-audit.sh")], + [bash_path, str(fixture / "scripts" / "security-audit.sh")], cwd=fixture, text=True, capture_output=True, ) output = result.stdout + result.stderr