aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-18 00:51:56 +0100
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-23 16:21:02 +0100
commitd905715572014dd6bd0b5998750d756ab0bfd03c (patch)
treeab3535594515a00649c3204241f01bd664be3a3f
parentc8faa619a19d528765ca44ee72a9888413a73045 (diff)
downloadsbotools2-d905715572014dd6bd0b5998750d756ab0bfd03c.tar.xz
Make sure $lo is defined
-rwxr-xr-xt/env.t1
-rwxr-xr-xt/install.t1
-rwxr-xr-xt/remove.t1
3 files changed, 3 insertions, 0 deletions
diff --git a/t/env.t b/t/env.t
index 94eec20..e7573bd 100755
--- a/t/env.t
+++ b/t/env.t
@@ -55,6 +55,7 @@ sub set_lo {
if ($set) { script (qw/ sboconfig -o /, $lo, { test => 0 }); }
} else {
($lo) = script (qw/ sboconfig -l /, { expected => qr/LOCAL_OVERRIDES=(.*)/, test => 0 });
+ $lo //= 'FALSE';
note "Saving original value of LOCAL_OVERRIDES: $lo";
$set = 1;
script (qw/ sboconfig -o /, "$RealBin/LO", { test => 0 });
diff --git a/t/install.t b/t/install.t
index d022faa..b7bd69f 100755
--- a/t/install.t
+++ b/t/install.t
@@ -52,6 +52,7 @@ sub set_lo {
if ($set) { script (qw/ sboconfig -o /, $lo, { test => 0 }); }
} else {
($lo) = script (qw/ sboconfig -l /, { expected => qr/LOCAL_OVERRIDES=(.*)/, test => 0 });
+ $lo //= 'FALSE';
note "Saving original value of LOCAL_OVERRIDES: $lo";
$set = 1;
script (qw/ sboconfig -o /, "$RealBin/LO", { test => 0 });
diff --git a/t/remove.t b/t/remove.t
index a155cdc..8bc3203 100755
--- a/t/remove.t
+++ b/t/remove.t
@@ -52,6 +52,7 @@ sub set_lo {
if ($set) { script (qw/ sboconfig -o /, $lo, { test => 0 }); }
} else {
($lo) = script (qw/ sboconfig -l /, { expected => qr/LOCAL_OVERRIDES=(.*)/, test => 0 });
+ $lo //= 'FALSE';
note "Saving original value of LOCAL_OVERRIDES: $lo";
$set = 1;
script (qw/ sboconfig -o /, "$RealBin/LO", { test => 0 });