diff options
author | Jan Hrnko <jan.hrnko@satoshilabs.com> | 2019-11-05 21:45:02 +0100 |
---|---|---|
committer | Jan Hrnko <jan.hrnko@satoshilabs.com> | 2019-11-05 21:45:02 +0100 |
commit | 5768950f01998d67bc03405c03e4a20535976462 (patch) | |
tree | 4de989fb7c8a5f079dc6d3ab924972db959fea58 | |
parent | 6465a56d38f59bd339685942806972a8d4f1f379 (diff) | |
download | nixpkgs-5768950f01998d67bc03405c03e4a20535976462.tar nixpkgs-5768950f01998d67bc03405c03e4a20535976462.tar.gz nixpkgs-5768950f01998d67bc03405c03e4a20535976462.tar.bz2 nixpkgs-5768950f01998d67bc03405c03e4a20535976462.tar.lz nixpkgs-5768950f01998d67bc03405c03e4a20535976462.tar.xz nixpkgs-5768950f01998d67bc03405c03e4a20535976462.tar.zst nixpkgs-5768950f01998d67bc03405c03e4a20535976462.zip |
nixos/trac: port test to python
-rw-r--r-- | nixos/tests/trac.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nixos/tests/trac.nix b/nixos/tests/trac.nix index 643095d947e..7953f8d41f7 100644 --- a/nixos/tests/trac.nix +++ b/nixos/tests/trac.nix @@ -1,4 +1,4 @@ -import ./make-test.nix ({ pkgs, ... }: { +import ./make-test-python.nix ({ pkgs, ... }: { name = "trac"; meta = with pkgs.stdenv.lib.maintainers; { maintainers = [ mmahut ]; @@ -11,9 +11,9 @@ import ./make-test.nix ({ pkgs, ... }: { }; testScript = '' - startAll; - $machine->waitForUnit("trac.service"); - $machine->waitForOpenPort(8000); - $machine->waitUntilSucceeds("curl -L http://localhost:8000/ | grep 'Trac Powered'"); + start_all() + machine.wait_for_unit("trac.service") + machine.wait_for_open_port(8000) + machine.wait_until_succeeds("curl -L http://localhost:8000/ | grep 'Trac Powered'") ''; }) |