nixosTests.pantheon: Ensure the test fails when gala coredumps

It can be possible that pgrep failed to catch this. See the GNOME 45 PR.
This commit is contained in:
Bobby Rong 2023-08-16 21:40:34 +08:00
parent 8353344d32
commit d86dc7c016
No known key found for this signature in database

View File

@ -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")
'';