nixosTests.peerflix: Port tests to python
This commit is contained in:
parent
a20683acbe
commit
d58814ac5a
|
@ -1,6 +1,6 @@
|
||||||
# This test runs peerflix and checks if peerflix starts
|
# This test runs peerflix and checks if peerflix starts
|
||||||
|
|
||||||
import ./make-test.nix ({ pkgs, ...} : {
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
||||||
name = "peerflix";
|
name = "peerflix";
|
||||||
meta = with pkgs.stdenv.lib.maintainers; {
|
meta = with pkgs.stdenv.lib.maintainers; {
|
||||||
maintainers = [ offline ];
|
maintainers = [ offline ];
|
||||||
|
@ -15,9 +15,9 @@ import ./make-test.nix ({ pkgs, ...} : {
|
||||||
};
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
startAll;
|
start_all()
|
||||||
|
|
||||||
$peerflix->waitForUnit("peerflix.service");
|
peerflix.wait_for_unit("peerflix.service")
|
||||||
$peerflix->waitUntilSucceeds("curl localhost:9000");
|
peerflix.wait_until_succeeds("curl localhost:9000")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue