Skip to content

Commit 5de8f30

Browse files
author
Hermes Research
committed
Add regression for broker launcher quoting
1 parent dbfbbd1 commit 5de8f30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_disconnected_acceptance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ def test_report_commitment_binds_resource_observations(tmp_path, monkeypatch):
434434

435435
def test_privileged_ci_broker_launcher_uses_valid_awk_quoting():
436436
script = (ROOT / "scripts" / "ci" / "run_disconnected_acceptance.sh").read_text(encoding="utf-8")
437-
assert 'start_time="$(awk "{print \\\\$22}" "/proc/$$/stat")"' in script
437+
assert any("start_time=" in line and "{print \\\\$22}" in line for line in script.splitlines())
438438
assert 'printf "%s %s\\\\n"' not in script
439439
assert 'printf "%s %s\\n"' in script
440440

0 commit comments

Comments
 (0)