Merge pull request #264260 from bobby285271/upd/xfce

nixosTests.xfce: Check if any coredumps are found
This commit is contained in:
Bobby Rong 2023-10-30 22:16:39 +08:00 committed by GitHub
commit 7378978469
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,6 +66,9 @@ import ./make-test-python.nix ({ pkgs, ...} : {
machine.succeed("su - ${user.name} -c 'DISPLAY=:0 thunar >&2 &'")
machine.wait_for_window("Thunar")
machine.wait_for_text('(Pictures|Public|Templates|Videos)')
with subtest("Check if any coredumps are found"):
machine.succeed("(coredumpctl --json=short 2>&1 || true) | grep 'No coredumps found'")
machine.sleep(10)
machine.screenshot("screen")
'';