diff options
author | Christian Kampka <christian@kampka.net> | 2019-12-15 18:32:18 +0100 |
---|---|---|
committer | Christian Kampka <christian@kampka.net> | 2019-12-15 20:07:58 +0100 |
commit | d029e28b78ec535cfd37a9d26d18e7b248077c79 (patch) | |
tree | 4e9c546b85072ca37beb98fbab9acd21dc3ceff8 /nixos/tests/postgis.nix | |
parent | e96802ccb22f110fe9e93783856b2aef10b14608 (diff) |
nixosTests.postgis: Port tests to python
Diffstat (limited to 'nixos/tests/postgis.nix')
-rw-r--r-- | nixos/tests/postgis.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nixos/tests/postgis.nix b/nixos/tests/postgis.nix index 294eb50b5fe50..84bbb0bc8ec63 100644 --- a/nixos/tests/postgis.nix +++ b/nixos/tests/postgis.nix @@ -1,4 +1,4 @@ -import ./make-test.nix ({ pkgs, ...} : { +import ./make-test-python.nix ({ pkgs, ...} : { name = "postgis"; meta = with pkgs.stdenv.lib.maintainers; { maintainers = [ lsix ]; @@ -20,10 +20,10 @@ import ./make-test.nix ({ pkgs, ...} : { }; testScript = '' - startAll; - $master->waitForUnit("postgresql"); - $master->sleep(10); # Hopefully this is long enough!! - $master->succeed("sudo -u postgres psql -c 'CREATE EXTENSION postgis;'"); - $master->succeed("sudo -u postgres psql -c 'CREATE EXTENSION postgis_topology;'"); + start_all() + master.wait_for_unit("postgresql") + master.sleep(10) # Hopefully this is long enough!! + master.succeed("sudo -u postgres psql -c 'CREATE EXTENSION postgis;'") + master.succeed("sudo -u postgres psql -c 'CREATE EXTENSION postgis_topology;'") ''; }) |