aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-08-04 01:10:49 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-08-04 01:10:49 +0200
commit21159e04c4ca1b4d2d122daffb240421910fba9e (patch)
tree233e51ea0490343e1fd6ff6239e2170e0c6726e4
parentb8cbf7d3cbc75c1ff959e520346133cefc320268 (diff)
downloadsbotools2-21159e04c4ca1b4d2d122daffb240421910fba9e.tar.xz
Test::Sbotools: need to load script into main package
-rw-r--r--t/Test/Sbotools.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/Test/Sbotools.pm b/t/Test/Sbotools.pm
index 659b6cc..0db120e 100644
--- 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 = $@;
}; };