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 /t/env.t | |
parent | 09c2d3d1e618e2cc73298a88eee2b7835c9f8461 (diff) | |
download | sbotools2-2e773e67617e3ee3b9d30ed2365579ef18aa3a29.tar.xz |
Fix old run syntax to use new script syntax in *.t files
Diffstat (limited to 't/env.t')
-rwxr-xr-x | t/env.t | 6 |
1 files changed, 3 insertions, 3 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 }); } } |