diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-18 00:28:05 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-23 16:21:02 +0100 |
commit | 2e773e67617e3ee3b9d30ed2365579ef18aa3a29 (patch) | |
tree | 68a8fb32671b56517fcafd7465c1ebd52759dd21 | |
parent | 09c2d3d1e618e2cc73298a88eee2b7835c9f8461 (diff) | |
download | sbotools2-2e773e67617e3ee3b9d30ed2365579ef18aa3a29.tar.xz |
Fix old run syntax to use new script syntax in *.t files
-rwxr-xr-x | t/env.t | 6 | ||||
-rwxr-xr-x | t/install.t | 6 | ||||
-rwxr-xr-x | t/remove.t | 6 |
3 files changed, 9 insertions, 9 deletions
@@ -52,12 +52,12 @@ sub set_lo { state $set = 0; state $lo; if ($_[0]) { - if ($set) { run (cmd => [qw/ sboconfig -o /, $lo], test => 0); } + if ($set) { script (qw/ sboconfig -o /, $lo, { test => 0 }); } } else { - ($lo) = run (cmd => [qw/ sboconfig -l /], expected => qr/LOCAL_OVERRIDES=(.*)/, test => 0); + ($lo) = script (qw/ sboconfig -l /, { expected => qr/LOCAL_OVERRIDES=(.*)/, test => 0 }); note "Saving original value of LOCAL_OVERRIDES: $lo"; $set = 1; - run (cmd => [qw/ sboconfig -o /, "$RealBin/LO"], test => 0); + script (qw/ sboconfig -o /, "$RealBin/LO", { test => 0 }); } } diff --git a/t/install.t b/t/install.t index 54eafe3..cfdd415 100755 --- a/t/install.t +++ b/t/install.t @@ -49,12 +49,12 @@ sub set_lo { state $set = 0; state $lo; if ($_[0]) { - if ($set) { run (cmd => [qw/ sboconfig -o /, $lo], test => 0); } + if ($set) { script (qw/ sboconfig -o /, $lo, { test => 0 }); } } else { - ($lo) = run (cmd => [qw/ sboconfig -l /], expected => qr/LOCAL_OVERRIDES=(.*)/, test => 0); + ($lo) = script (qw/ sboconfig -l /, { expected => qr/LOCAL_OVERRIDES=(.*)/, test => 0 }); note "Saving original value of LOCAL_OVERRIDES: $lo"; $set = 1; - run (cmd => [qw/ sboconfig -o /, "$RealBin/LO"], test => 0); + script (qw/ sboconfig -o /, "$RealBin/LO", { test => 0 }); } } @@ -49,12 +49,12 @@ sub set_lo { state $set = 0; state $lo; if ($_[0]) { - if ($set) { run (cmd => [qw/ sboconfig -o /, $lo], test => 0); } + if ($set) { script (qw/ sboconfig -o /, $lo, { test => 0 }); } } else { - ($lo) = run (cmd => [qw/ sboconfig -l /], expected => qr/LOCAL_OVERRIDES=(.*)/, test => 0); + ($lo) = script (qw/ sboconfig -l /, { expected => qr/LOCAL_OVERRIDES=(.*)/, test => 0 }); note "Saving original value of LOCAL_OVERRIDES: $lo"; $set = 1; - run (cmd => [qw/ sboconfig -o /, "$RealBin/LO"], test => 0); + script (qw/ sboconfig -o /, "$RealBin/LO", { test => 0 }); } } |