From 53ff0daeff79f5c89db0eb9ad65b6f6cc35125d5 Mon Sep 17 00:00:00 2001 From: codex-bot-andresmgsl <244098813+codex-bot-andresmgsl@users.noreply.github.com> Date: Fri, 24 Jul 2026 01:34:44 +0000 Subject: [PATCH] test: isolate bootstrap undo fixtures --- test/cli.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cli.sh b/test/cli.sh index 14cd921..311880e 100644 --- a/test/cli.sh +++ b/test/cli.sh @@ -177,7 +177,7 @@ undo() { } undo_untouched() { : > "$UNDO_CALLS" - if undo >/tmp/rig-undo.out 2>&1; then return 1; fi + if undo >"$UNDO_FIX/undo.out" 2>&1; then return 1; fi [ ! -s "$UNDO_CALLS" ] } rm -f "$UNDO_MARKER" @@ -205,7 +205,7 @@ check "bootstrap --undo: proven rig join succeeds" 0 "tailnet join removed" undo check "bootstrap --undo: successful logout was called" 0 "logout" cat "$UNDO_CALLS" check "bootstrap --undo: success removes the marker" 1 "" test -e "$UNDO_MARKER" check "bootstrap --undo: second run refuses cleanly" 1 "no /etc/rig/role marker" undo -rm -rf "$UNDO_FIX" /tmp/rig-undo.out +rm -rf "$UNDO_FIX" # ...and that it is written in the CURRENT vocabulary (#77). New markers say # root-door=; the retired class= spelling is something rig READS forever and # WRITES never, so a marker line that reintroduces it must not ship green.