diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-08-04 01:10:49 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-08-04 01:10:49 +0200 |
commit | 21159e04c4ca1b4d2d122daffb240421910fba9e (patch) | |
tree | 233e51ea0490343e1fd6ff6239e2170e0c6726e4 | |
parent | b8cbf7d3cbc75c1ff959e520346133cefc320268 (diff) | |
download | sbotools2-21159e04c4ca1b4d2d122daffb240421910fba9e.tar.xz |
Test::Sbotools: need to load script into main package
-rw-r--r-- | t/Test/Sbotools.pm | 1 |
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 = $@; }; }; |