From 8bc63484571af04f98c60817fbef4721577d7c23 Mon Sep 17 00:00:00 2001 From: M Somerville Date: Tue, 13 Oct 2020 14:13:04 +0100 Subject: Do not test all of t if a state is provided. Otherwise running with --state=failed does not do as you would expect. --- perllib/FixMyStreet/TestAppProve.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perllib/FixMyStreet/TestAppProve.pm') diff --git a/perllib/FixMyStreet/TestAppProve.pm b/perllib/FixMyStreet/TestAppProve.pm index ec245e72c..d977c0a94 100644 --- a/perllib/FixMyStreet/TestAppProve.pm +++ b/perllib/FixMyStreet/TestAppProve.pm @@ -111,7 +111,7 @@ sub run { $prove->process_args(@ARGV); # If no arguments, test everything - $prove->argv(['t']) unless @{$prove->argv}; + $prove->argv(['t']) unless @{$prove->argv} || @state; # verbose if we have a single file $prove->verbose(1) if @{$prove->argv} and -f $prove->argv->[-1] && !$ENV{CI}; # we always want to recurse -- cgit v1.2.3