test: check shim private dir cleanup
Some checks failed
Test / Create distribution (push) Successful in 40s
Test / Hpkg (push) Successful in 45s
Test / Sandbox (push) Successful in 1m34s
Test / Hakurei (push) Failing after 2m13s
Test / Sandbox (race detector) (push) Successful in 2m21s
Test / Hakurei (race detector) (push) Successful in 3m18s
Test / Flake checks (push) Has been skipped

This asserts that no shim private dir was left behind after all containers terminate.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-12-15 20:14:39 +09:00
parent 54610aaddc
commit cdef7a3124
2 changed files with 7 additions and 0 deletions

View File

@@ -79,8 +79,10 @@ check_sandbox("device")
check_sandbox("pdlike")
# Exit Sway and verify process exit status 0:
machine.wait_until_fails("pgrep hakurei", timeout=5)
swaymsg("exit", succeed=False)
machine.wait_for_file("/tmp/sway-exit-ok")
# Print hakurei runDir contents:
print(machine.fail("ls /run/user/1000/hakurei"))
machine.succeed("find /tmp -maxdepth 1 -type d -name '.hakurei-shim-*' -print -exec false '{}' +")