summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Kampka <christian@kampka.net>2019-12-15 18:50:50 +0100
committerChristian Kampka <christian@kampka.net>2019-12-15 20:08:01 +0100
commitd58814ac5a3e49ae4dd5182d9ae73bbe5e607c1e (patch)
treeadefc3c31dcc7c3217131b1837f4887c143f64a4
parenta20683acbef60c0590e6ac6332f7512c6b0284e8 (diff)
downloadnixpkgs-d58814ac5a3e49ae4dd5182d9ae73bbe5e607c1e.tar
nixpkgs-d58814ac5a3e49ae4dd5182d9ae73bbe5e607c1e.tar.gz
nixpkgs-d58814ac5a3e49ae4dd5182d9ae73bbe5e607c1e.tar.bz2
nixpkgs-d58814ac5a3e49ae4dd5182d9ae73bbe5e607c1e.tar.lz
nixpkgs-d58814ac5a3e49ae4dd5182d9ae73bbe5e607c1e.tar.xz
nixpkgs-d58814ac5a3e49ae4dd5182d9ae73bbe5e607c1e.tar.zst
nixpkgs-d58814ac5a3e49ae4dd5182d9ae73bbe5e607c1e.zip
nixosTests.peerflix: Port tests to python
-rw-r--r--nixos/tests/peerflix.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/tests/peerflix.nix b/nixos/tests/peerflix.nix
index fae37fedaac..37628604d49 100644
--- a/nixos/tests/peerflix.nix
+++ b/nixos/tests/peerflix.nix
@@ -1,6 +1,6 @@
 # This test runs peerflix and checks if peerflix starts
 
-import ./make-test.nix ({ pkgs, ...} : {
+import ./make-test-python.nix ({ pkgs, ...} : {
   name = "peerflix";
   meta = with pkgs.stdenv.lib.maintainers; {
     maintainers = [ offline ];
@@ -15,9 +15,9 @@ import ./make-test.nix ({ pkgs, ...} : {
     };
 
   testScript = ''
-    startAll;
+    start_all()
 
-    $peerflix->waitForUnit("peerflix.service");
-    $peerflix->waitUntilSucceeds("curl localhost:9000");
+    peerflix.wait_for_unit("peerflix.service")
+    peerflix.wait_until_succeeds("curl localhost:9000")
   '';
 })