8000 Honor PROVE_FLAGS environment setting · markusborg/postgres@054a897 · GitHub
[go: up one dir, main page]

Skip to content

Commit 054a897

Browse files
committed
Honor PROVE_FLAGS environment setting
On MSVC builds and on back branches that means removing the hardcoded --verbose setting. On master for Unix that means removing the empty setting in the global Makefile so that the value can be acquired from the environment as well as from the make arguments. Backpatch to 9.4 where we introduced TAP tests
1 parent 8ec82ee commit 054a897

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/Makefile.global.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,8 @@ PROVE = @PROVE@
334334
# There are common routines in src/test/perl, and some test suites have
335335
# extra perl modules in their own directory.
336336
PG_PROVE_FLAGS = -I $(top_srcdir)/src/test/perl/ -I $(srcdir)
337-
PROVE_FLAGS = --verbose
337+
# User-supplied prove flags such as --verbose can be provided in PROVE_FLAGS.
338+
338339

339340
# prepend to path if already set, else just set it
340341
define add_to_path

src/tools/msvc/vcregress.pl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,10 @@ sub tap_check
179179
my $dir = shift;
180180
chdir $dir;
181181

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

184187
# adjust the environment for just this test
185188
local %ENV = %ENV;

0 commit comments

Comments
 (0)
0