mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
nixos/trezord: port test to python
This commit is contained in:
parent
5768950f01
commit
23340a21b6
@ -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")
|
||||
'';
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user