Remove REGRESS_OUTPUTDIR environment variable.
authorThomas Munro <[email protected]>
Sun, 13 Feb 2022 23:52:57 +0000 (12:52 +1300)
committerThomas Munro <[email protected]>
Sun, 13 Feb 2022 23:52:57 +0000 (12:52 +1300)
Andres Freund points out that the tmp_check path is already available as
perl variable PostgreSQL::Test::Utils::tmp_check, so we can drop the new
environment variable introduced by commit f47ed79cc.

Discussion: https://postgr.es/m/20220213052955.dh7lheehit7bsemf%40alap3.anarazel.de

src/test/recovery/Makefile
src/test/recovery/t/027_stream_regress.pl
src/tools/msvc/vcregress.pl

index 4eb12e05838b8f40ce877dc9b1dc7090f94d58bf..da5b9ff397c540f84e09e3f65c4c55e2112be3a5 100644 (file)
@@ -19,10 +19,6 @@ include $(top_builddir)/src/Makefile.global
 REGRESS_SHLIB=$(abs_top_builddir)/src/test/regress/regress$(DLSUFFIX)
 export REGRESS_SHLIB
 
-# required for 027_stream_regress.pl
-REGRESS_OUTPUTDIR=$(abs_top_builddir)/src/test/recovery/tmp_check
-export REGRESS_OUTPUTDIR
-
 check:
    $(prove_check)
 
index c0aae707ea1d8daefa0c9cf3e720a5f0e5611038..4f82a54f933c7d1a2ca8054348f7fa698868a21f 100644 (file)
@@ -49,7 +49,7 @@ $node_standby_1->append_conf('postgresql.conf',
 $node_standby_1->start;
 
 my $dlpath = PostgreSQL::Test::Utils::perl2host(dirname($ENV{REGRESS_SHLIB}));
-my $outputdir = PostgreSQL::Test::Utils::perl2host($ENV{REGRESS_OUTPUTDIR});
+my $outputdir = PostgreSQL::Test::Utils::perl2host($PostgreSQL::Test::Utils::tmp_check);
 
 # Run the regression tests against the primary.
 my $extra_opts = $ENV{EXTRA_REGRESS_OPTS} || "";
index ddce4680a94694d0a9b293ee421055b69f26e44b..a9946262398bc61b17651686ec72b8f9a6317a67 100644 (file)
@@ -536,8 +536,6 @@ sub recoverycheck
 {
    InstallTemp();
 
-   $ENV{REGRESS_OUTPUTDIR} = "$topdir/src/test/recovery/tmp_check";
-
    my $dir    = "$topdir/src/test/recovery";
    my $status = tap_check($dir);
    exit $status if $status;