diff options
author | Jan Hrnko <jan.hrnko@satoshilabs.com> | 2019-11-09 19:04:10 +0100 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2019-11-22 20:38:56 +0100 |
commit | e31441ba9ef845c192fc61917eee2d6078f2d27d (patch) | |
tree | f3d540ffda8d25e45a0d8b4c0c3ff9d295ad7796 /nixos/tests/fancontrol.nix | |
parent | ce139ed229670d2a97af7d9501282827f782b938 (diff) | |
download | nixpkgs-e31441ba9ef845c192fc61917eee2d6078f2d27d.tar nixpkgs-e31441ba9ef845c192fc61917eee2d6078f2d27d.tar.gz nixpkgs-e31441ba9ef845c192fc61917eee2d6078f2d27d.tar.bz2 nixpkgs-e31441ba9ef845c192fc61917eee2d6078f2d27d.tar.lz nixpkgs-e31441ba9ef845c192fc61917eee2d6078f2d27d.tar.xz nixpkgs-e31441ba9ef845c192fc61917eee2d6078f2d27d.tar.zst nixpkgs-e31441ba9ef845c192fc61917eee2d6078f2d27d.zip |
nixos/fancontrol: port test to python
Diffstat (limited to 'nixos/tests/fancontrol.nix')
-rw-r--r-- | nixos/tests/fancontrol.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/nixos/tests/fancontrol.nix b/nixos/tests/fancontrol.nix index 83ddbb54c5b..356cd57ffa1 100644 --- a/nixos/tests/fancontrol.nix +++ b/nixos/tests/fancontrol.nix @@ -1,4 +1,4 @@ -import ./make-test.nix ({ pkgs, ... } : { +import ./make-test-python.nix ({ pkgs, ... } : { name = "fancontrol"; 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. testScript = '' - $machine->waitForUnit("fancontrol.service"); - $machine->waitUntilSucceeds("journalctl -eu fancontrol | grep 'Configuration appears to be outdated'"); + start_all() + machine.wait_for_unit("fancontrol.service") + machine.wait_until_succeeds( + "journalctl -eu fancontrol | grep 'Configuration appears to be outdated'" + ) ''; }) |