nixosTests.postgis: Port tests to python

Changed files
+6 -6
nixos
tests
+6 -6
nixos/tests/postgis.nix
···
-
import ./make-test.nix ({ pkgs, ...} : {
+
import ./make-test-python.nix ({ pkgs, ...} : {
name = "postgis";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ lsix ];
···
};
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;'")
'';
})