nixos/trac: port test to python
This commit is contained in:
parent
6465a56d38
commit
5768950f01
1 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
import ./make-test.nix ({ pkgs, ... }: {
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
||||||
name = "trac";
|
name = "trac";
|
||||||
meta = with pkgs.stdenv.lib.maintainers; {
|
meta = with pkgs.stdenv.lib.maintainers; {
|
||||||
maintainers = [ mmahut ];
|
maintainers = [ mmahut ];
|
||||||
|
@ -11,9 +11,9 @@ import ./make-test.nix ({ pkgs, ... }: {
|
||||||
};
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
startAll;
|
start_all()
|
||||||
$machine->waitForUnit("trac.service");
|
machine.wait_for_unit("trac.service")
|
||||||
$machine->waitForOpenPort(8000);
|
machine.wait_for_open_port(8000)
|
||||||
$machine->waitUntilSucceeds("curl -L http://localhost:8000/ | grep 'Trac Powered'");
|
machine.wait_until_succeeds("curl -L http://localhost:8000/ | grep 'Trac Powered'")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue