aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-10-04 13:39:31 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-10-04 13:39:31 +0100
commita123e7da22e9dbf8d98d15287526d070ab15bf15 (patch)
tree34d6d1170fe594e22b43290c6d1e155aad044e57 /bin
parentb816cd81fea58adcad5ae216b4dfe9030dad40aa (diff)
Add perl 5.26/5.28 support.
Upgrade a couple of modules, deal with '.' not present in @INC, captures returning undef rather than '', and a test.
Diffstat (limited to 'bin')
-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