nixosTests.pantheon: adjust test slightly
This commit is contained in:
parent
71882102e3
commit
aa6fb602a0
|
@ -22,16 +22,18 @@ import ./make-test.nix ({ pkgs, ...} :
|
||||||
testScript = { nodes, ... }: let
|
testScript = { nodes, ... }: let
|
||||||
user = nodes.machine.config.users.users.alice;
|
user = nodes.machine.config.users.users.alice;
|
||||||
in ''
|
in ''
|
||||||
startAll;
|
|
||||||
|
|
||||||
# Wait for display manager to start
|
# 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->waitForText(qr/${user.description}/);
|
||||||
$machine->screenshot("lightdm");
|
$machine->screenshot("elementary_greeter_lightdm");
|
||||||
|
|
||||||
# Log in
|
# Log in
|
||||||
$machine->sendChars("${user.password}\n");
|
$machine->sendChars("${user.password}\n");
|
||||||
$machine->waitForFile("/home/alice/.Xauthority");
|
$machine->waitForUnit("default.target","alice");
|
||||||
$machine->succeed("xauth merge ~alice/.Xauthority");
|
$machine->waitForFile("${user.home}/.Xauthority");
|
||||||
|
$machine->succeed("xauth merge ${user.home}/.Xauthority");
|
||||||
|
|
||||||
# Check if "pantheon-shell" components actually start
|
# Check if "pantheon-shell" components actually start
|
||||||
$machine->waitUntilSucceeds("pgrep gala");
|
$machine->waitUntilSucceeds("pgrep gala");
|
||||||
|
|
Loading…
Reference in a new issue