summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorMichael Weiss <dev.primeos@gmail.com>2021-06-25 13:23:39 +0200
committerGitHub <noreply@github.com>2021-06-25 13:23:39 +0200
commit370a10c27fc13f2b70dfee2284b30d6989b4336b (patch)
treedf403a7e6e89fb5d3cfa4ed2d8d18f6e375fae36 /nixos/tests
parent4457a52cabe423cca6302d253b48250b6a68afda (diff)
parentad1141b5289c1d87f6ec869828cb3acf205b13d7 (diff)
downloadnixpkgs-370a10c27fc13f2b70dfee2284b30d6989b4336b.tar
nixpkgs-370a10c27fc13f2b70dfee2284b30d6989b4336b.tar.gz
nixpkgs-370a10c27fc13f2b70dfee2284b30d6989b4336b.tar.bz2
nixpkgs-370a10c27fc13f2b70dfee2284b30d6989b4336b.tar.lz
nixpkgs-370a10c27fc13f2b70dfee2284b30d6989b4336b.tar.xz
nixpkgs-370a10c27fc13f2b70dfee2284b30d6989b4336b.tar.zst
nixpkgs-370a10c27fc13f2b70dfee2284b30d6989b4336b.zip
Merge pull request #128055 from Synthetica9/sway-check-quit
nixos/tests/sway: add check that sway quits
Diffstat (limited to 'nixos/tests')
-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 21900ee4c01..01240ef572a 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")