about summary refs log tree commit diff
path: root/nixos/tests/pantheon.nix
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2023-08-16 21:40:34 +0800
committerBobby Rong <rjl931189261@126.com>2023-08-16 23:20:38 +0800
commitd86dc7c016a95e9d6f2133db317ba505371b0a88 (patch)
tree18737fed2a0c686a53fab0534afad63beddccd08 /nixos/tests/pantheon.nix
parent8353344d3236d3fda429bb471c1ee008857d3b7c (diff)
nixosTests.pantheon: Ensure the test fails when gala coredumps
It can be possible that pgrep failed to catch this. See the GNOME 45 PR.
Diffstat (limited to 'nixos/tests/pantheon.nix')
-rw-r--r--nixos/tests/pantheon.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/tests/pantheon.nix b/nixos/tests/pantheon.nix
index 653fcc6edad11..dee6964644c5d 100644
--- a/nixos/tests/pantheon.nix
+++ b/nixos/tests/pantheon.nix
@@ -60,6 +60,9 @@ import ./make-test-python.nix ({ pkgs, lib, ...} :
     with subtest("Open elementary terminal"):
         machine.execute("su - ${user.name} -c 'DISPLAY=:0 io.elementary.terminal >&2 &'")
         machine.wait_for_window("io.elementary.terminal")
+
+    with subtest("Check if gala has ever coredumped"):
+        machine.fail("coredumpctl --json=short | grep gala")
         machine.sleep(20)
         machine.screenshot("screen")
   '';