nixos/yabar: port test to python
This commit is contained in:
parent
274fb7e0b9
commit
49914d7d8b
@ -1,4 +1,4 @@
|
||||
import ./make-test.nix ({ pkgs, lib, ... }:
|
||||
import ./make-test-python.nix ({ pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
@ -20,14 +20,14 @@ with lib;
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
$machine->start;
|
||||
$machine->waitForX;
|
||||
machine.start()
|
||||
machine.wait_for_x()
|
||||
|
||||
# confirm proper startup
|
||||
$machine->waitForUnit("yabar.service", "bob");
|
||||
$machine->sleep(10);
|
||||
$machine->waitForUnit("yabar.service", "bob");
|
||||
machine.wait_for_unit("yabar.service", "bob")
|
||||
machine.sleep(10)
|
||||
machine.wait_for_unit("yabar.service", "bob")
|
||||
|
||||
$machine->screenshot("top_bar");
|
||||
machine.screenshot("top_bar")
|
||||
'';
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user