commit b50e3a707b9c040af8a6b574436e765323ebf50e
parent 2018bbaec4abf9894fd91107602b55cff1838174
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Thu, 31 Dec 2015 15:58:08 +0100
Disable sbosrcarch under travis
Diffstat:
2 files changed, 19 insertions(+), 14 deletions(-)
diff --git a/t/online.t b/t/online.t
@@ -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
@@ -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