nixosTests.lightdm: port to python
This commit is contained in:
parent
8a7b4ccd1f
commit
1132f037a1
1 changed files with 8 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
|||
import ./make-test.nix ({ pkgs, ...} : {
|
||||
import ./make-test-python.nix ({ pkgs, ...} : {
|
||||
name = "lightdm";
|
||||
meta = with pkgs.stdenv.lib.maintainers; {
|
||||
maintainers = [ aszlig worldofpeace ];
|
||||
|
@ -18,12 +18,12 @@ import ./make-test.nix ({ pkgs, ...} : {
|
|||
testScript = { nodes, ... }: let
|
||||
user = nodes.machine.config.users.users.alice;
|
||||
in ''
|
||||
startAll;
|
||||
$machine->waitForText(qr/${user.description}/);
|
||||
$machine->screenshot("lightdm");
|
||||
$machine->sendChars("${user.password}\n");
|
||||
$machine->waitForFile("/home/alice/.Xauthority");
|
||||
$machine->succeed("xauth merge ~alice/.Xauthority");
|
||||
$machine->waitForWindow("^IceWM ");
|
||||
start_all()
|
||||
machine.wait_for_text("${user.description}")
|
||||
machine.screenshot("lightdm")
|
||||
machine.send_chars("${user.password}\n")
|
||||
machine.wait_for_file("${user.home}/.Xauthority")
|
||||
machine.succeed("xauth merge ${user.home}/.Xauthority")
|
||||
machine.wait_for_window("^IceWM ")
|
||||
'';
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue