From 85be352da4e973bc0a866774fff9052ac5d1b446 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Thu, 6 Nov 2014 14:08:37 +0100 Subject: postgresql-tests: add test for PGSETUP_INITDB_OPTIONS * lib_pgsql.sh (dtf_postgresql_phase_cleanup): Remove all logs. (dtf_postgresql_checkphase): Fail if some logs are present. * tasks/upgrade/locale/changed/runtest.sh: New file. --- postgresql-tests/lib_pgsql.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'postgresql-tests/lib_pgsql.sh') diff --git a/postgresql-tests/lib_pgsql.sh b/postgresql-tests/lib_pgsql.sh index 99cde85..8d44391 100644 --- a/postgresql-tests/lib_pgsql.sh +++ b/postgresql-tests/lib_pgsql.sh @@ -23,6 +23,7 @@ dtf_postgresql_phase_cleanup() rlServiceStop postgresql dtf_postgresql_check_stopped rlRun "rm -rf /var/lib/pgsql/data" + rlRun "rm -rf /var/lib/pgsql/*.log" rlPhaseEnd } @@ -34,6 +35,9 @@ dtf_postgresql_checkphase() dtf_postgresql_check_stopped rlAssertNotExists "/var/lib/pgsql/data/PG_VERSION" + while read line; do + rlAssertNotExists "$line" + done < <(find /var/lib/pgsql/ -maxdepth 1 -name '*.log') rlAssert0 "run under root user" "$(id -u)" -- cgit