diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-18 00:51:56 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-23 16:21:02 +0100 |
commit | d905715572014dd6bd0b5998750d756ab0bfd03c (patch) | |
tree | ab3535594515a00649c3204241f01bd664be3a3f | |
parent | c8faa619a19d528765ca44ee72a9888413a73045 (diff) | |
download | sbotools2-d905715572014dd6bd0b5998750d756ab0bfd03c.tar.xz |
Make sure $lo is defined
-rwxr-xr-x | t/env.t | 1 | ||||
-rwxr-xr-x | t/install.t | 1 | ||||
-rwxr-xr-x | t/remove.t | 1 |
3 files changed, 3 insertions, 0 deletions
@@ -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 }); @@ -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 }); |