Files
computer-playbook/tests/unit/scripts
kevinveenbirkenbachandClaude Opus 5 92ccfee786 test(worktree): make the new tests pass ruff and the root-run suite
Two problems, same two files, neither ever gated: the earlier run died in
autoformat before test-unit started.

ruff wanted Path.stat/Path.chmod over their os counterparts and an explicit
check on subprocess.run — worth stating here, since down() is called precisely
to observe a non-zero exit while its sibling git() sets check=True.

The write-bit pinning the four remaining tests rely on does not restrain root,
and the suite runs as root in the container: the script deleted the directory
anyway, the assertion inverted, and the finally block then chmod'd a path that
was already gone. Those four now skip when euid is 0, because the scenario
cannot exist there.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-30 23:59:09 +02:00
..