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