aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-08-07 00:41:01 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-08-07 00:41:01 +0200
commit41f42ddf65b53e665a4fc0aa303c26f59bc31acf (patch)
tree3a6d52bf830c751a1de3ef8045ef1b5249b4601d /t
parent1c0a63bf67783165fb730a0c6831431ee7cca0ef (diff)
downloadsbotools-41f42ddf65b53e665a4fc0aa303c26f59bc31acf.tar.xz
27-race-sbofind.t: use load() from Test::Sbotools
Diffstat (limited to 't')
-rwxr-xr-xt/27-race-sbofind.t19
1 files changed, 2 insertions, 17 deletions
diff --git a/t/27-race-sbofind.t b/t/27-race-sbofind.t
index ba28a5e..001d5a7 100755
--- a/t/27-race-sbofind.t
+++ b/t/27-race-sbofind.t
@@ -6,6 +6,8 @@ use Test::More;
use Test::Exit;
use FindBin '$RealBin';
use lib "$RealBin/../SBO-Lib/lib";
+use lib $RealBin;
+use Test::Sbotools 'load';
use Capture::Tiny qw/ capture_merged /;
use File::Temp 'tempdir';
use Cwd;
@@ -13,23 +15,6 @@ use feature 'state';
plan tests => 9;
-sub load {
- my ($script, %opts) = @_;
-
- local @ARGV = exists $opts{argv} ? @{ $opts{argv} } : '-h';
- my ($ret, $exit, $out, $do_err);
- my $eval = eval {
- $out = capture_merged { $exit = exit_code {
- $ret = do "$RealBin/../$script";
- $do_err = $@;
- }; };
- 1;
- };
- my $err = $@;
-
- note explain { ret => $ret, exit => $exit, out => $out, eval => $eval, err => $err, do_err => $do_err } if $opts{explain};
-}
-
load('sbofind');
my $tags_file = '/usr/sbo/repo/TAGS.txt';