aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/TestAppProve.pm
diff options
context:
space:
mode:
authorM Somerville <matthew-github@dracos.co.uk>2020-10-13 14:13:04 +0100
committerM Somerville <matthew-github@dracos.co.uk>2020-10-14 11:55:04 +0100
commit8bc63484571af04f98c60817fbef4721577d7c23 (patch)
tree4131219690f5f2af818de64f5a5620b06066c27a /perllib/FixMyStreet/TestAppProve.pm
parentc419e88385f287f6f593f28a0ec0e8a9ae8b0bd4 (diff)
Do not test all of t if a state is provided.
Otherwise running with --state=failed does not do as you would expect.
Diffstat (limited to 'perllib/FixMyStreet/TestAppProve.pm')
-rw-r--r--perllib/FixMyStreet/TestAppProve.pm2
1 files changed, 1 insertions, 1 deletions
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