From: Álvaro Herrera Date: Tue, 7 Apr 2026 13:14:32 +0000 (+0200) Subject: Fix tests under wal_level=minimal X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be142fa008ade51bb579a5990b43d55bab743194;p=thirdparty%2Fpostgresql.git Fix tests under wal_level=minimal Buildfarm members which have specifically configured to use wal_level=minimal fail the repack regression tests, which require wal_level=replica. Add a temp config file to fix that. --- diff --git a/src/test/modules/injection_points/Makefile b/src/test/modules/injection_points/Makefile index 2cd7d87c533..f057d143d1a 100644 --- a/src/test/modules/injection_points/Makefile +++ b/src/test/modules/injection_points/Makefile @@ -19,6 +19,9 @@ ISOLATION = basic \ syscache-update-pruned \ heap_lock_update +# some isolation tests require wal_level=replica +ISOLATION_OPTS = --temp-config $(top_srcdir)/src/test/modules/injection_points/extra.conf + # The injection points are cluster-wide, so disable installcheck NO_INSTALLCHECK = 1 diff --git a/src/test/modules/injection_points/extra.conf b/src/test/modules/injection_points/extra.conf new file mode 100644 index 00000000000..010abb193a8 --- /dev/null +++ b/src/test/modules/injection_points/extra.conf @@ -0,0 +1 @@ +wal_level=replica diff --git a/src/test/modules/injection_points/meson.build b/src/test/modules/injection_points/meson.build index a414abb924b..fb1418e2caa 100644 --- a/src/test/modules/injection_points/meson.build +++ b/src/test/modules/injection_points/meson.build @@ -53,5 +53,9 @@ tests += { 'runningcheck': false, # see syscache-update-pruned # Some tests wait for all snapshots, so avoid parallel execution 'runningcheck-parallel': false, + # some tests require wal_level=replica + 'regress_args': [ + '--temp-config', files('extra.conf'), + ], }, }