Skip to content

Commit 3c017a5

Browse files
committed
Take PROVE_FLAGS from the command line but not the environment
This reverts commit 56b6ef8 and instead makes vcregress.pl parse out PROVE_FLAGS from a command line argument when doing a TAP test, thus making it consistent with the makefile treatment. Discussion: https://postgr.es/m/c26a7416-2fb9-34ab-7991-618c922f896e%402ndquadrant.com Backpatch to 9.4 like previous patch.
1 parent fd84995 commit 3c017a5

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/Makefile.global.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ PROVE = @PROVE@
336336
# extra perl modules in their own directory.
337337
PG_PROVE_FLAGS = -I $(top_srcdir)/src/test/perl/ -I $(srcdir)
338338
# User-supplied prove flags such as --verbose can be provided in PROVE_FLAGS.
339-
339+
PROVE_FLAGS =
340340

341341
# prepend to path if already set, else just set it
342342
define add_to_path

src/tools/msvc/vcregress.pl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,18 @@ sub tap_check
177177
die "Tap tests not enabled in configuration"
178178
unless $config->{tap_tests};
179179

180+
my @flags;
181+
foreach my $arg (0 .. scalar(@_))
182+
{
183+
next unless $_[$arg] =~ /^PROVE_FLAGS=(.*)/;
184+
@flags = split(/\s+/, $1);
185+
splice(@_,$arg,1);
186+
last;
187+
}
188+
180189
my $dir = shift;
181190
chdir $dir;
182191

183-
my @flags;
184-
@flags = split(/\s+/,$ENV{PROVE_FLAGS}) if exists $ENV{PROVE_FLAGS};
185-
186192
my @args = ("prove", @flags, "t/*.pl");
187193

188194
# adjust the environment for just this test

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy