about summary refs log tree commit diff
path: root/nixos/tests/sway.nix
diff options
context:
space:
mode:
authorPatrick Hilhorst <git@hilhorst.be>2021-06-25 02:06:00 +0200
committerPatrick Hilhorst <git@hilhorst.be>2021-06-25 02:06:00 +0200
commitad1141b5289c1d87f6ec869828cb3acf205b13d7 (patch)
treec778ff965f9be2eb3b3275661c4581580a80eff4 /nixos/tests/sway.nix
parentc83a8e49d2f9baeccdb138a3e5a5f0dd3afa986e (diff)
nixos/tests/sway: add check that sway quits
We used to check that sway quits _succesfully_.
However, since 73d7f08b4d89b1af213db5db34e6f39518d88634
disabled this, we'll add another check to see it quits _at all_.

cc @primeos
Diffstat (limited to 'nixos/tests/sway.nix')
-rw-r--r--nixos/tests/sway.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/tests/sway.nix b/nixos/tests/sway.nix
index 21900ee4c0145..01240ef572a68 100644
--- a/nixos/tests/sway.nix
+++ b/nixos/tests/sway.nix
@@ -104,6 +104,8 @@ import ./make-test-python.nix ({ pkgs, lib, ...} :
 
     # Exit Sway and verify process exit status 0:
     machine.succeed("su - alice -c 'swaymsg exit || true'")
+    machine.wait_until_fails("pgrep -x sway")
+
     # TODO: Sway currently segfaults after "swaymsg exit" but only in this VM test:
     # machine # [  104.090032] sway[921]: segfault at 3f800008 ip 00007f7dbdc25f10 sp 00007ffe282182f8 error 4 in libwayland-server.so.0.1.0[7f7dbdc1f000+8000]
     # machine.wait_for_file("/tmp/sway-exit-ok")