From bdee859ccd8eb42a0f347c7755d62b8c7b1c3e2d Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Tue, 15 Dec 2015 11:22:28 +0100 Subject: Fix inverted skip check --- t/travis.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/travis.t') diff --git a/t/travis.t b/t/travis.t index 98da5fd..9a0c369 100755 --- a/t/travis.t +++ b/t/travis.t @@ -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"); -- cgit v1.2.3