3
0
Fork 0
forked from mirrors/nixpkgs

nixos/tests/gnome3: switch to lightdm (#41742)

This commit is contained in:
xeji 2018-06-09 22:02:48 +02:00 committed by GitHub
parent 79511c8434
commit 08197d032a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,8 +11,9 @@ import ./make-test.nix ({ pkgs, ...} : {
services.xserver.enable = true;
services.xserver.displayManager.auto.enable = true;
services.xserver.displayManager.auto.user = "alice";
services.xserver.displayManager.lightdm.enable = true;
services.xserver.displayManager.lightdm.autoLogin.enable = true;
services.xserver.displayManager.lightdm.autoLogin.user = "alice";
services.xserver.desktopManager.gnome3.enable = true;
virtualisation.memorySize = 1024;
@ -21,7 +22,9 @@ import ./make-test.nix ({ pkgs, ...} : {
testScript =
''
$machine->waitForX;
$machine->sleep(15);
# wait for alice to be logged in
$machine->waitForUnit("default.target","alice");
# Check that logging in has given the user ownership of devices.
$machine->succeed("getfacl /dev/snd/timer | grep -q alice");