diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-15 11:22:28 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-15 11:22:28 +0100 |
commit | bdee859ccd8eb42a0f347c7755d62b8c7b1c3e2d (patch) | |
tree | 649471e72c49d60737778a58d441ac6fd328eb09 | |
parent | bc01c570796aa22417c3e283cff6f5840a6cf5b3 (diff) | |
download | sbotools2-bdee859ccd8eb42a0f347c7755d62b8c7b1c3e2d.tar.xz |
Fix inverted skip check
-rwxr-xr-x | t/travis.t | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -57,7 +57,7 @@ SKIP: { is (run(cmd => [qw/ sboconfig -o /, "$RealBin/LO"]), "Setting LOCAL_OVERRIDES to $RealBin/LO...\n", 'setting LOCAL_OVERRIDES works'); my $skip = 0; SKIP: { - if ($ENV{TEST_ONLINE} ne '1') { $skip = system(qw! touch /usr/sbo/repo/SLACKBUILDS.txt !) == 0 } + if ($ENV{TEST_ONLINE} ne '1') { $skip = !(system(qw! mkdir -p /usr/sbo/repo !) == 0 and system(qw! touch /usr/sbo/repo/SLACKBUILDS.txt !) == 0) } skip "Online testing disabled (TEST_ONLINE!=1) and could not create dummy SLACKBUILDS.txt", 9 if $skip; is (run(cmd => [qw/ sbofind nonexistentslackbuild /]), <<"LOCAL", "sbofind finds local overrides"); |