aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-08-09 23:22:32 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-08-09 23:22:32 +0200
commit3f19d3480369ba1e586cb7db64706c9e325fb52d (patch)
treee19b1c10f9a43319c7290b083d52ec40e636d4ce
parent165e1eb7f15234fca8877fffa1224d22125045e5 (diff)
downloadsbotools2-3f19d3480369ba1e586cb7db64706c9e325fb52d.tar.xz
Test::Sbotools: make load() return the explained struct
-rw-r--r--t/Test/Sbotools.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/Test/Sbotools.pm b/t/Test/Sbotools.pm
index 0db120e..7c6d98b 100644
--- a/t/Test/Sbotools.pm
+++ b/t/Test/Sbotools.pm
@@ -167,7 +167,9 @@ sub load {
};
my $err = $@;
- note explain { ret => $ret, exit => $exit, out => $out, eval => $eval, err => $err, do_err => $do_err } if $opts{explain};
+ my $explain = { ret => $ret, exit => $exit, out => $out, eval => $eval, err => $err, do_err => $do_err };
+ note explain $explain if $opts{explain};
+ return $explain;
}