Merge pull request #73137 from worldofpeace/port-xmonad-test
nixosTests.xmonad: port to python
This commit is contained in:
commit
deb125271c
@ -1,4 +1,4 @@
|
|||||||
import ./make-test.nix ({ pkgs, ...} : {
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
||||||
name = "xmonad";
|
name = "xmonad";
|
||||||
meta = with pkgs.stdenv.lib.maintainers; {
|
meta = with pkgs.stdenv.lib.maintainers; {
|
||||||
maintainers = [ nequissimus ];
|
maintainers = [ nequissimus ];
|
||||||
@ -21,19 +21,21 @@ import ./make-test.nix ({ pkgs, ...} : {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
testScript = { ... }: ''
|
testScript = { nodes, ... }: let
|
||||||
$machine->waitForX;
|
user = nodes.machine.config.users.users.alice;
|
||||||
$machine->waitForFile("/home/alice/.Xauthority");
|
in ''
|
||||||
$machine->succeed("xauth merge ~alice/.Xauthority");
|
machine.wait_for_x()
|
||||||
$machine->sendKeys("alt-ctrl-x");
|
machine.wait_for_file("${user.home}/.Xauthority")
|
||||||
$machine->waitForWindow(qr/alice.*machine/);
|
machine.succeed("xauth merge ${user.home}/.Xauthority")
|
||||||
$machine->sleep(1);
|
machine.send_chars("alt-ctrl-x")
|
||||||
$machine->screenshot("terminal");
|
machine.wait_for_window("${user.name}.*machine")
|
||||||
$machine->waitUntilSucceeds("xmonad --restart");
|
machine.sleep(1)
|
||||||
$machine->sleep(3);
|
machine.screenshot("terminal")
|
||||||
$machine->sendKeys("alt-shift-ret");
|
machine.wait_until_succeeds("xmonad --restart")
|
||||||
$machine->waitForWindow(qr/alice.*machine/);
|
machine.sleep(3)
|
||||||
$machine->sleep(1);
|
machine.send_chars("alt-shift-ret")
|
||||||
$machine->screenshot("terminal");
|
machine.wait_for_window("${user.name}.*machine")
|
||||||
|
machine.sleep(1)
|
||||||
|
machine.screenshot("terminal")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user