nixos/yabar: port test to python

This commit is contained in:
Jan Hrnko 2019-11-06 07:54:16 +01:00
parent 274fb7e0b9
commit 49914d7d8b

View File

@ -1,4 +1,4 @@
import ./make-test.nix ({ pkgs, lib, ... }: import ./make-test-python.nix ({ pkgs, lib, ... }:
with lib; with lib;
@ -20,14 +20,14 @@ with lib;
}; };
testScript = '' testScript = ''
$machine->start; machine.start()
$machine->waitForX; machine.wait_for_x()
# confirm proper startup # confirm proper startup
$machine->waitForUnit("yabar.service", "bob"); machine.wait_for_unit("yabar.service", "bob")
$machine->sleep(10); machine.sleep(10)
$machine->waitForUnit("yabar.service", "bob"); machine.wait_for_unit("yabar.service", "bob")
$machine->screenshot("top_bar"); machine.screenshot("top_bar")
''; '';
}) })