From abebf8cdb3cd01a4b8eca9f5943c145ad77431ee Mon Sep 17 00:00:00 2001 From: Jacek Galowicz Date: Thu, 9 Jan 2020 23:21:51 +0100 Subject: nixosTests.initdb: Move code to existing postgres test --- nixos/tests/postgresql.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nixos/tests/postgresql.nix') 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() ''; -- cgit 1.4.1