aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-18 00:28:05 +0100
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-23 16:21:02 +0100
commit2e773e67617e3ee3b9d30ed2365579ef18aa3a29 (patch)
tree68a8fb32671b56517fcafd7465c1ebd52759dd21
parent09c2d3d1e618e2cc73298a88eee2b7835c9f8461 (diff)
downloadsbotools2-2e773e67617e3ee3b9d30ed2365579ef18aa3a29.tar.xz
Fix old run syntax to use new script syntax in *.t files
-rwxr-xr-xt/env.t6
-rwxr-xr-xt/install.t6
-rwxr-xr-xt/remove.t6
3 files changed, 9 insertions, 9 deletions
diff --git a/t/env.t b/t/env.t
index 5697777..14cb865 100755
--- a/t/env.t
+++ b/t/env.t
@@ -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 });
}
}
diff --git a/t/remove.t b/t/remove.t
index 3014ea7..e2c3672 100755
--- a/t/remove.t
+++ b/t/remove.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 });
}
}