mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
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
|
||||
|
||||
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")
|
||||
'';
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user