diff options
author | worldofpeace <worldofpeace@protonmail.ch> | 2019-11-06 20:49:06 -0500 |
---|---|---|
committer | worldofpeace <worldofpeace@protonmail.ch> | 2019-11-09 15:14:56 -0500 |
commit | 1132f037a1fd41cc761126f9fb29a1fceb6e8a4f (patch) | |
tree | 0077adb70c9d17d368290acb6221ec396da0544a /nixos/tests | |
parent | 8a7b4ccd1fb03febc9463698f44402d3f0b26c4b (diff) | |
download | nixlib-1132f037a1fd41cc761126f9fb29a1fceb6e8a4f.tar nixlib-1132f037a1fd41cc761126f9fb29a1fceb6e8a4f.tar.gz nixlib-1132f037a1fd41cc761126f9fb29a1fceb6e8a4f.tar.bz2 nixlib-1132f037a1fd41cc761126f9fb29a1fceb6e8a4f.tar.lz nixlib-1132f037a1fd41cc761126f9fb29a1fceb6e8a4f.tar.xz nixlib-1132f037a1fd41cc761126f9fb29a1fceb6e8a4f.tar.zst nixlib-1132f037a1fd41cc761126f9fb29a1fceb6e8a4f.zip |
nixosTests.lightdm: port to python
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/lightdm.nix | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/nixos/tests/lightdm.nix b/nixos/tests/lightdm.nix index c805f1ed9f3c..ef30f7741e23 100644 --- a/nixos/tests/lightdm.nix +++ b/nixos/tests/lightdm.nix @@ -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 ") ''; }) |