diff options
author | Jan Hrnko <jan.hrnko@satoshilabs.com> | 2019-11-05 21:45:12 +0100 |
---|---|---|
committer | Jan Hrnko <jan.hrnko@satoshilabs.com> | 2019-11-05 21:45:12 +0100 |
commit | 23340a21b6e42fe211da33d5531038fed94179a3 (patch) | |
tree | 4b40e50b377605841aa49d65d80e83ea9e0424e2 /nixos | |
parent | 5768950f01998d67bc03405c03e4a20535976462 (diff) | |
download | nixpkgs-23340a21b6e42fe211da33d5531038fed94179a3.tar nixpkgs-23340a21b6e42fe211da33d5531038fed94179a3.tar.gz nixpkgs-23340a21b6e42fe211da33d5531038fed94179a3.tar.bz2 nixpkgs-23340a21b6e42fe211da33d5531038fed94179a3.tar.lz nixpkgs-23340a21b6e42fe211da33d5531038fed94179a3.tar.xz nixpkgs-23340a21b6e42fe211da33d5531038fed94179a3.tar.zst nixpkgs-23340a21b6e42fe211da33d5531038fed94179a3.zip |
nixos/trezord: port test to python
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/trezord.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nixos/tests/trezord.nix b/nixos/tests/trezord.nix index 1c85bf53934..8d908a52249 100644 --- a/nixos/tests/trezord.nix +++ b/nixos/tests/trezord.nix @@ -1,7 +1,7 @@ -import ./make-test.nix ({ pkgs, ... }: { +import ./make-test-python.nix ({ pkgs, ... }: { name = "trezord"; meta = with pkgs.stdenv.lib.maintainers; { - maintainers = [ mmahut ]; + maintainers = [ mmahut "1000101" ]; }; nodes = { @@ -12,9 +12,9 @@ import ./make-test.nix ({ pkgs, ... }: { }; testScript = '' - startAll; - $machine->waitForUnit("trezord.service"); - $machine->waitForOpenPort(21325); - $machine->waitUntilSucceeds("curl -L http://localhost:21325/status/ | grep Version"); + start_all() + machine.wait_for_unit("trezord.service") + machine.wait_for_open_port(21325) + machine.wait_until_succeeds("curl -L http://localhost:21325/status/ | grep Version") ''; }) |