diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-12-08 22:29:41 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-12-08 22:29:41 +0900 |
| commit | d5fb179012e36436a81761502948c91d44d21cc3 (patch) | |
| tree | 512f44f6bc8519aa4e4a4853c0419869ebaf2570 /test | |
| parent | 462863e2908bf14d36f726a06bf22e9e1aceb7b5 (diff) | |
cmd/hakurei: exec instead of fork/exec from shell
There is no reason to keep the shell process around.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test')
| -rw-r--r-- | test/interactive/hakurei.nix | 2 | ||||
| -rw-r--r-- | test/test.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/test/interactive/hakurei.nix b/test/interactive/hakurei.nix index 96f014ce..eb24c7e7 100644 --- a/test/interactive/hakurei.nix +++ b/test/interactive/hakurei.nix @@ -37,7 +37,7 @@ path = "/bin/sh"; args = [ "-lc" - "sleep 1 && false" + "sleep 1 && exec false" ]; } ]; diff --git a/test/test.py b/test/test.py index d1edca4c..9b06a8f2 100644 --- a/test/test.py +++ b/test/test.py @@ -233,6 +233,7 @@ collect_state_ui("pipewire_wayland") machine.send_chars("exit\n") machine.wait_until_fails("pgrep foot", timeout=5) # Test PipeWire SecurityContext: +machine.succeed("sudo -u alice -i XDG_RUNTIME_DIR=/run/user/1000 hakurei -v run --pulse pactl info") machine.fail("sudo -u alice -i XDG_RUNTIME_DIR=/run/user/1000 hakurei -v run --pulse pactl set-sink-mute @DEFAULT_SINK@ toggle") # Test XWayland (foot does not support X): |
