test/sandbox: check pd behaviour

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-08-01 02:11:19 +09:00
parent f14e7255be
commit 987981df73
4 changed files with 230 additions and 15 deletions

View File

@@ -58,12 +58,13 @@ print(machine.fail("sudo -u alice -i hakurei run umount -R /dev"))
check_offset = 0
def check_sandbox(name):
global check_offset
check_offset += 1
swaymsg(f"exec script /dev/null -E always -qec check-sandbox-{name}")
machine.wait_for_file(f"/tmp/hakurei.1000/tmpdir/{check_offset}/sandbox-ok", timeout=15)
check_filter(check_offset, name, "hakurei-test")
check_offset += 1
check_sandbox("pd")
check_sandbox("preset")
check_sandbox("tty")
check_sandbox("mapuid")