diff options
-rwxr-xr-x | t/online.t | 32 | ||||
-rw-r--r-- | t/travis-deps/install.sh | 1 |
2 files changed, 19 insertions, 14 deletions
@@ -60,20 +60,24 @@ chk_slackbuilds_txt(); } # 5: test sbosrcarch -subtest 'sbosrcarch tests', -sub { - plan tests => 5; - - my $symlinks; - stderr_like ( sub { $symlinks = check_distfiles(LOCATION => "$repo_path/audio/test"); }, - qr/ERROR 404: Not Found[.].*Resolving slackware[.]uk/s, 'link not found, using sbosrcarch'); - my $sym = $symlinks->[0]; - my $fn = "eawpats12_full.tar.gz"; - is ($sym, "$repo_path/audio/test/$fn", 'symlink is in the right place'); - ok (-l $sym, 'symlink is actually a symlink'); - is (readlink($sym), "$sbo_home/distfiles/$fn", 'symlink leads to the right place'); - ok (unlink(readlink($sym), $sym), "deleting $fn works"); -}; +SKIP: { + skip "Not doing sbosrcarch test under Travis CI", 1 if $ENV{TRAVIS}; + + subtest 'sbosrcarch tests', + sub { + plan tests => 5; + + my $symlinks; + stderr_like ( sub { $symlinks = check_distfiles(LOCATION => "$repo_path/audio/test"); }, + qr/ERROR 404: Not Found[.].*Resolving slackware[.]uk/s, 'link not found, using sbosrcarch'); + my $sym = $symlinks->[0]; + my $fn = "eawpats12_full.tar.gz"; + is ($sym, "$repo_path/audio/test/$fn", 'symlink is in the right place'); + ok (-l $sym, 'symlink is actually a symlink'); + is (readlink($sym), "$sbo_home/distfiles/$fn", 'symlink leads to the right place'); + ok (unlink(readlink($sym), $sym), "deleting $fn works"); + }; +} # 6: test pull_sbo_tree SKIP: { diff --git a/t/travis-deps/install.sh b/t/travis-deps/install.sh index 565852e..073802e 100644 --- a/t/travis-deps/install.sh +++ b/t/travis-deps/install.sh @@ -1,3 +1,4 @@ #!/bin/bash mkdir -p /var/log/packages cp -a t/travis-deps/*pkg /sbin/ +echo "127.0.0.1 slackware.uk" >> /etc/hosts |