nixosTests.initdb: port to python
This commit is contained in:
parent
c0b70f0e35
commit
c44331dd5d
@ -1,10 +1,4 @@
|
|||||||
let
|
import ./make-test-python.nix ({ pkgs, latestKernel ? false, ... }: {
|
||||||
pkgs = import <nixpkgs> { };
|
|
||||||
in
|
|
||||||
with import <nixpkgs/nixos/lib/testing.nix> { inherit pkgs; system = builtins.currentSystem; };
|
|
||||||
with pkgs.lib;
|
|
||||||
|
|
||||||
makeTest {
|
|
||||||
name = "pg-initdb";
|
name = "pg-initdb";
|
||||||
|
|
||||||
machine = {...}:
|
machine = {...}:
|
||||||
@ -18,9 +12,8 @@ makeTest {
|
|||||||
};
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
$machine->start;
|
machine.start()
|
||||||
$machine->succeed("sudo -u postgres initdb -D /tmp/testpostgres2");
|
machine.succeed("sudo -u postgres initdb -D /tmp/testpostgres2")
|
||||||
$machine->shutdown;
|
machine.shutdown()
|
||||||
'';
|
'';
|
||||||
|
})
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user