nixos/xautolock: port test to python
This commit is contained in:
parent
6ea7ba4d69
commit
8060e76037
|
@ -1,4 +1,4 @@
|
|||
import ./make-test.nix ({ pkgs, lib, ... }:
|
||||
import ./make-test-python.nix ({ pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
|
@ -15,10 +15,10 @@ with lib;
|
|||
};
|
||||
|
||||
testScript = ''
|
||||
$machine->start;
|
||||
$machine->waitForX;
|
||||
$machine->mustFail("pgrep xlock");
|
||||
$machine->sleep(120);
|
||||
$machine->mustSucceed("pgrep xlock");
|
||||
machine.start()
|
||||
machine.wait_for_x()
|
||||
machine.fail("pgrep xlock")
|
||||
machine.sleep(120)
|
||||
machine.succeed("pgrep xlock")
|
||||
'';
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue