nixos/xautolock: port test to python

This commit is contained in:
Jan Hrnko 2019-11-06 12:30:29 +01:00
parent 6ea7ba4d69
commit 8060e76037
1 changed files with 6 additions and 6 deletions

View File

@ -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")
''; '';
}) })