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;
|
with lib;
|
||||||
|
|
||||||
|
@ -15,10 +15,10 @@ with lib;
|
||||||
};
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
$machine->start;
|
machine.start()
|
||||||
$machine->waitForX;
|
machine.wait_for_x()
|
||||||
$machine->mustFail("pgrep xlock");
|
machine.fail("pgrep xlock")
|
||||||
$machine->sleep(120);
|
machine.sleep(120)
|
||||||
$machine->mustSucceed("pgrep xlock");
|
machine.succeed("pgrep xlock")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue