git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #128055 from Synthetica9/sway-check-quit

nixos/tests/sway: add check that sway quits

commit370a10c27fc13f2b70dfee2284b30d6989b4336b authorMichael Weiss <dev.primeos@gmail.com> dateFri 25 Jun 2021, 13:23 (5 years ago) parent4457a52ad1141b
1 file changed+2
nixos/tests/sway.nix+2
nixos/tests/sway.nix+2
@@ -104,6 +104,8 @@ import ./make-test-python.nix ({ pkgs, lib, ...} :
104104
105105 # Exit Sway and verify process exit status 0:
106106 machine.succeed("su - alice -c 'swaymsg exit || true'")
107+ machine.wait_until_fails("pgrep -x sway")
108+
107109 # TODO: Sway currently segfaults after "swaymsg exit" but only in this VM test:
108110 # machine # [ 104.090032] sway[921]: segfault at 3f800008 ip 00007f7dbdc25f10 sp 00007ffe282182f8 error 4 in libwayland-server.so.0.1.0[7f7dbdc1f000+8000]
109111 # machine.wait_for_file("/tmp/sway-exit-ok")