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 @@ -336,7 +336,7 @@ PROVE = @PROVE@
336
336
# extra perl modules in their own directory.
337
337
PG_PROVE_FLAGS = -I $(top_srcdir ) /src/test/perl/ -I $(srcdir )
338
338
# User-supplied prove flags such as --verbose can be provided in PROVE_FLAGS.
339
-
339
+ PROVE_FLAGS =
340
340
341
341
# prepend to path if already set, else just set it
342
342
define add_to_path
Original file line number Diff line number Diff line change @@ -177,12 +177,18 @@ sub tap_check
177
177
die " Tap tests not enabled in configuration"
178
178
unless $config -> {tap_tests };
179
179
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
+
180
189
my $dir = shift ;
181
190
chdir $dir ;
182
191
183
- my @flags ;
184
- @flags = split (/ \s +/ ,$ENV {PROVE_FLAGS }) if exists $ENV {PROVE_FLAGS };
185
-
186
192
my @args = (" prove" , @flags , " t/*.pl" );
187
193
188
194
# adjust the environment for just this test
You can’t perform that action at this time.
0 commit comments