Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a03397-4d51-7fd1-8ff2-946eb22ea2bc
This commit is contained in:
parent
788eb8e2ed
commit
92881b6b56
35 changed files with 1206 additions and 806 deletions
|
|
@ -42,10 +42,12 @@ def test_cleanup_is_dry_run_then_removes_only_owned_runtime(
|
|||
state, runtime = configure_paths(tmp_path, monkeypatch)
|
||||
command_dir = state / "commands" / "tamq"
|
||||
command_dir.mkdir(parents=True)
|
||||
generated = command_dir / "@audit-core"
|
||||
generated = command_dir / "To:audit-core:"
|
||||
generated.write_text(f"#!/bin/sh\n{SHIM_MARKER}\n", encoding="utf-8")
|
||||
unrelated = command_dir / "keep-me"
|
||||
unrelated.write_text("operator file\n", encoding="utf-8")
|
||||
binary = command_dir / "binary"
|
||||
binary.write_bytes(b"\xff\x00\x80")
|
||||
for name in ("tamq.sock", "tamq.pid", "tamq.lock"):
|
||||
(runtime / name).write_text("stale\n", encoding="utf-8")
|
||||
tmux_socket_dir = tmp_path / "tmux" / f"tmux-{os.getuid()}"
|
||||
|
|
@ -96,6 +98,7 @@ def test_cleanup_is_dry_run_then_removes_only_owned_runtime(
|
|||
assert manager.identity is None
|
||||
assert not generated.exists()
|
||||
assert unrelated.exists()
|
||||
assert binary.exists()
|
||||
assert not any((runtime / name).exists() for name in ("tamq.sock", "tamq.pid", "tamq.lock"))
|
||||
assert not stale_tmux_socket.exists()
|
||||
assert live_tmux_socket.exists()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue