File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -340,7 +340,7 @@ PROVE = @PROVE@
340
340
# extra perl modules in their own directory.
341
341
PG_PROVE_FLAGS = -I $(top_srcdir ) /src/test/perl/ -I $(srcdir )
342
342
# User-supplied prove flags such as --verbose can be provided in PROVE_FLAGS.
343
-
343
+ PROVE_FLAGS =
344
344
345
345
# prepend to path if already set, else just set it
346
346
define add_to_path
Original file line number Diff line number Diff line change @@ -178,12 +178,18 @@ sub tap_check
178
178
die " Tap tests not enabled in configuration"
179
179
unless $config -> {tap_tests };
180
180
181
+ my @flags ;
182
+ foreach my $arg (0 .. scalar (@_ ))
183
+ {
184
+ next unless $_ [$arg ] =~ / ^PROVE_FLAGS=(.*)/ ;
185
+ @flags = split (/ \s +/ , $1 );
186
+ splice (@_ ,$arg ,1);
187
+ last ;
188
+ }
189
+
181
190
my $dir = shift ;
182
191
chdir $dir ;
183
192
184
- my @flags ;
185
- @flags = split (/ \s +/ , $ENV {PROVE_FLAGS }) if exists $ENV {PROVE_FLAGS };
186
-
187
193
my @args = (" prove" , @flags , " t/*.pl" );
188
194
189
195
# adjust the environment for just this test
You can’t perform that action at this time.
0 commit comments