diff options
author | Jacek Galowicz <jacek.galowicz@cyberus-technology.de> | 2020-01-09 23:21:51 +0100 |
---|---|---|
committer | Jacek Galowicz <jacek.galowicz@cyberus-technology.de> | 2020-01-09 23:21:51 +0100 |
commit | abebf8cdb3cd01a4b8eca9f5943c145ad77431ee (patch) | |
tree | b94be0761fe11f0f5b2698cdcd37f96b235bdce4 /nixos/tests/postgresql.nix | |
parent | fff1c2867f848c7479873beefd29d7ce4b31a455 (diff) |
nixosTests.initdb: Move code to existing postgres test
Diffstat (limited to 'nixos/tests/postgresql.nix')
-rw-r--r-- | nixos/tests/postgresql.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/tests/postgresql.nix b/nixos/tests/postgresql.nix index 5ba2d38773bb1..3201e22555eab 100644 --- a/nixos/tests/postgresql.nix +++ b/nixos/tests/postgresql.nix @@ -76,6 +76,9 @@ let "stat -c '%a' /var/backup/postgresql/${backupName}.sql.gz | grep 600", ) + with subtest("Initdb works"): + machine.succeed("sudo -u postgres initdb -D /tmp/testpostgres2") + machine.shutdown() ''; |