commit 21159e04c4ca1b4d2d122daffb240421910fba9e
parent b8cbf7d3cbc75c1ff959e520346133cefc320268
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Thu, 4 Aug 2016 01:10:49 +0200
Test::Sbotools: need to load script into main package
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/t/Test/Sbotools.pm b/t/Test/Sbotools.pm
@@ -159,6 +159,7 @@ sub load {
my ($ret, $exit, $out, $do_err);
my $eval = eval {
$out = capture_merged { $exit = exit_code {
+ package main;
$ret = do "$RealBin/../$script";
$do_err = $@;
}; };