summary refs log tree commit diff
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2021-12-16 16:30:19 +0100
committerNaïm Favier <n@monade.li>2022-01-03 17:05:57 +0100
commite9ebd5e90ed786599c9a8ddbf8b89ed23a688db6 (patch)
tree7b884c7b0f6b98065ea09d496c67680e538ece4e
parentebaa2268539a1d7fcf81773afb0bea671a6ec340 (diff)
downloadnixpkgs-e9ebd5e90ed786599c9a8ddbf8b89ed23a688db6.tar
nixpkgs-e9ebd5e90ed786599c9a8ddbf8b89ed23a688db6.tar.gz
nixpkgs-e9ebd5e90ed786599c9a8ddbf8b89ed23a688db6.tar.bz2
nixpkgs-e9ebd5e90ed786599c9a8ddbf8b89ed23a688db6.tar.lz
nixpkgs-e9ebd5e90ed786599c9a8ddbf8b89ed23a688db6.tar.xz
nixpkgs-e9ebd5e90ed786599c9a8ddbf8b89ed23a688db6.tar.zst
nixpkgs-e9ebd5e90ed786599c9a8ddbf8b89ed23a688db6.zip
nixosTests.gnome: add autologin delay to catch GDM failures
Catches failures like https://github.com/NixOS/nixpkgs/issues/149539
that don't happen with AutomaticLoginEnable.

We still have a 0-delay autologin test in gnome-xorg, in case there's
ever an issue that only arises with AutomaticLoginEnable.
-rw-r--r--nixos/tests/gnome.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/tests/gnome.nix b/nixos/tests/gnome.nix
index 06f387ecad6..4471126902a 100644
--- a/nixos/tests/gnome.nix
+++ b/nixos/tests/gnome.nix
@@ -18,6 +18,8 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {
           enable = true;
           user = "alice";
         };
+        # Catch GDM failures that don't happen with AutomaticLoginEnable, e.g. https://github.com/NixOS/nixpkgs/issues/149539
+        gdm.autoLogin.delay = 1;
       };
 
       services.xserver.desktopManager.gnome.enable = true;