diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-05-30 00:05:24 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-05-30 00:05:24 +0200 |
commit | e00794a00569655792868bc812cb824c5f522e25 (patch) | |
tree | eaa02583438d4716c262201224d36a1a87384eef /t/07-fail.t | |
parent | c68be800c7403569927ccbc5459c96404a7ba9cf (diff) | |
download | sbotools2-e00794a00569655792868bc812cb824c5f522e25.tar.xz |
test files: add restore_perf_dummy and make_slackbuilds_txt to tests that would need them
Diffstat (limited to 't/07-fail.t')
-rwxr-xr-x | t/07-fail.t | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/07-fail.t b/t/07-fail.t index cd6dced..217bef3 100755 --- a/t/07-fail.t +++ b/t/07-fail.t @@ -7,7 +7,7 @@ use Test::More; use Capture::Tiny qw/ capture_merged /; use FindBin '$RealBin'; use lib $RealBin; -use Test::Sbotools qw/ make_slackbuilds_txt set_lo set_repo sboinstall sboremove sbosnap /; +use Test::Sbotools qw/ make_slackbuilds_txt set_lo set_repo sboinstall sboremove sbosnap restore_perf_dummy /; use File::Temp 'tempdir'; if ($ENV{TEST_INSTALL}) { @@ -84,6 +84,7 @@ sub cleanup { cleanup(); make_slackbuilds_txt(); set_lo("$RealBin/LO-fail"); +restore_perf_dummy(); # 1: Failing slackbuild script sboinstall 'failingslackbuild', { input => "y\ny", expected => qr/Failures:\n failingslackbuild: failingslackbuild.SlackBuild return non-zero\n\z/, exit => 3 }; |