aboutsummaryrefslogtreecommitdiffstats
path: root/bin/run-tests
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-10-04 16:15:18 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-10-04 16:15:18 +0100
commitc358aa2beeb4637d190a91def6c7a4b23d162b51 (patch)
tree6019e1e9c362dd71dc6731e200ae7f6fc6fb20df /bin/run-tests
parent96bb52d449517b1018841e56e6008dedd03e6f3b (diff)
parenta123e7da22e9dbf8d98d15287526d070ab15bf15 (diff)
Merge branch 'test-warnings'
Diffstat (limited to 'bin/run-tests')
-rwxr-xr-xbin/run-tests6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/run-tests b/bin/run-tests
index c384516c8..de495dd05 100755
--- a/bin/run-tests
+++ b/bin/run-tests
@@ -1,13 +1,17 @@
#!/usr/bin/env perl
use strict; use warnings;
+my $d;
BEGIN {
use File::Basename qw(dirname);
use File::Spec;
- my $d = dirname(File::Spec->rel2abs($0));
+ $d = dirname(File::Spec->rel2abs($0));
require "$d/../setenv.pl";
}
+# So the t::Mock:: modules can be found
+$ENV{PERL5LIB} = "$d/..:$ENV{PERL5LIB}";
+
use FixMyStreet::TestAppProve;
=head1 NAME