about summary refs log tree commit diff
path: root/nixos/tests/pantheon.nix
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2019-11-06 20:20:16 -0500
committerworldofpeace <worldofpeace@protonmail.ch>2019-11-25 11:54:37 -0500
commitaa6fb602a036480f19701079508cdfb810305aa6 (patch)
treeee39039f5276d1a1555aea73b93ff7d2c23f20cf /nixos/tests/pantheon.nix
parent71882102e35ee20910eb8f8f8544606a636dd572 (diff)
nixosTests.pantheon: adjust test slightly
Diffstat (limited to 'nixos/tests/pantheon.nix')
-rw-r--r--nixos/tests/pantheon.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/nixos/tests/pantheon.nix b/nixos/tests/pantheon.nix
index 9888887ee8b54..699634134842c 100644
--- a/nixos/tests/pantheon.nix
+++ b/nixos/tests/pantheon.nix
@@ -22,16 +22,18 @@ import ./make-test.nix ({ pkgs, ...} :
   testScript = { nodes, ... }: let
     user = nodes.machine.config.users.users.alice;
   in ''
-    startAll;
-
     # Wait for display manager to start
+    $machine->waitForUnit("display-manager.service");
+
+    # Test we can see username in elementary-greeter
     $machine->waitForText(qr/${user.description}/);
-    $machine->screenshot("lightdm");
+    $machine->screenshot("elementary_greeter_lightdm");
 
     # Log in
     $machine->sendChars("${user.password}\n");
-    $machine->waitForFile("/home/alice/.Xauthority");
-    $machine->succeed("xauth merge ~alice/.Xauthority");
+    $machine->waitForUnit("default.target","alice");
+    $machine->waitForFile("${user.home}/.Xauthority");
+    $machine->succeed("xauth merge ${user.home}/.Xauthority");
 
     # Check if "pantheon-shell" components actually start
     $machine->waitUntilSucceeds("pgrep gala");