diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-26 02:15:00 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-26 02:16:33 +0900 |
| commit | 4cf694d2b31c7aa5c66cbb83d7d54c1a6cb1b4aa (patch) | |
| tree | d4d964e10e8a50f60cc438ece76362b174e329c0 /test/test.py | |
| parent | c9facb746b7be0f2d8f6b9b2227340ba2ec12060 (diff) | |
hst: use hsu userid for share path suffix
The privileged user is identifier to hakurei through its hsu userid. Using the kernel uid here makes little sense and is a leftover design choice from before hsu was implemented.
Closes #7.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/test.py')
| -rw-r--r-- | test/test.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test.py b/test/test.py index c02766c7..96253534 100644 --- a/test/test.py +++ b/test/test.py @@ -113,12 +113,12 @@ def aid(offset): def tmpdir_path(offset, name): - return f"/tmp/hakurei.1000/tmpdir/{aid(offset)}/{name}" + return f"/tmp/hakurei.0/tmpdir/{aid(offset)}/{name}" # Start hakurei permissive defaults outside Wayland session: print(machine.succeed("sudo -u alice -i hakurei -v run -a 0 touch /tmp/pd-bare-ok")) -machine.wait_for_file("/tmp/hakurei.1000/tmpdir/0/pd-bare-ok", timeout=5) +machine.wait_for_file("/tmp/hakurei.0/tmpdir/0/pd-bare-ok", timeout=5) # Verify silent output permissive defaults: output = machine.succeed("sudo -u alice -i hakurei run -a 0 true &>/dev/stdout") @@ -131,8 +131,8 @@ def silent_output_interrupt(flags): wait_for_window("alice@machine") # aid 0 does not have home-manager machine.send_chars(f"exec hakurei run {flags}-a 0 sh -c 'export PATH=/run/current-system/sw/bin:$PATH && touch /tmp/pd-silent-ready && sleep infinity' &>/tmp/pd-silent\n") - machine.wait_for_file("/tmp/hakurei.1000/tmpdir/0/pd-silent-ready", timeout=15) - machine.succeed("rm /tmp/hakurei.1000/tmpdir/0/pd-silent-ready") + machine.wait_for_file("/tmp/hakurei.0/tmpdir/0/pd-silent-ready", timeout=15) + machine.succeed("rm /tmp/hakurei.0/tmpdir/0/pd-silent-ready") machine.send_key("ctrl-c") machine.wait_until_fails("pgrep foot", timeout=5) machine.wait_until_fails(f"pgrep -u alice -f 'hakurei run {flags}-a 0 '", timeout=5) |
