diff options
| author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-31 15:58:08 +0100 | 
|---|---|---|
| committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-31 22:52:46 +0100 | 
| commit | b50e3a707b9c040af8a6b574436e765323ebf50e (patch) | |
| tree | b9661834b7206dd7fbae7ec1827aebae6a3b0342 | |
| parent | 2018bbaec4abf9894fd91107602b55cff1838174 (diff) | |
| download | sbotools2-b50e3a707b9c040af8a6b574436e765323ebf50e.tar.xz | |
Disable sbosrcarch under travis
| -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  | 
