nixos/fancontrol: port test to python
This commit is contained in:
parent
ce139ed229
commit
e31441ba9e
|
@ -1,4 +1,4 @@
|
||||||
import ./make-test.nix ({ pkgs, ... } : {
|
import ./make-test-python.nix ({ pkgs, ... } : {
|
||||||
name = "fancontrol";
|
name = "fancontrol";
|
||||||
|
|
||||||
machine =
|
machine =
|
||||||
|
@ -19,7 +19,10 @@ import ./make-test.nix ({ pkgs, ... } : {
|
||||||
|
|
||||||
# This configuration cannot be valid for the test VM, so it's expected to get an 'outdated' error.
|
# This configuration cannot be valid for the test VM, so it's expected to get an 'outdated' error.
|
||||||
testScript = ''
|
testScript = ''
|
||||||
$machine->waitForUnit("fancontrol.service");
|
start_all()
|
||||||
$machine->waitUntilSucceeds("journalctl -eu fancontrol | grep 'Configuration appears to be outdated'");
|
machine.wait_for_unit("fancontrol.service")
|
||||||
|
machine.wait_until_succeeds(
|
||||||
|
"journalctl -eu fancontrol | grep 'Configuration appears to be outdated'"
|
||||||
|
)
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user