aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2017-11-05 11:25:18 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2017-11-06 20:54:44 +0100
commit0f3451e11e4abb2cc297afa51d945ec78050ac4b (patch)
treec57595b83467b8c44bdf29ba172dbc941fdbe0b3
parent9fdb5524ef0c3f716133b7b4b4ed2d0799b93a59 (diff)
downloadperl-URPM-0f3451e11e4abb2cc297afa51d945ec78050ac4b.tar
perl-URPM-0f3451e11e4abb2cc297afa51d945ec78050ac4b.tar.gz
perl-URPM-0f3451e11e4abb2cc297afa51d945ec78050ac4b.tar.bz2
perl-URPM-0f3451e11e4abb2cc297afa51d945ec78050ac4b.tar.xz
perl-URPM-0f3451e11e4abb2cc297afa51d945ec78050ac4b.zip
skip failing tests on *BSD
-rw-r--r--NEWS1
-rw-r--r--t/parse.t7
-rw-r--r--t/rpmdb.t4
3 files changed, 9 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 6694f21..edf131d 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@
(needed for eg: FreeBSD where rpm is installed under /usr/local)
o advertize the proper pkg for most distros
o skip all rpmdb tests on Debian/Ubutun
+ o skip failing tests on *BSD
Version 5.15 - 3 October 2017
diff --git a/t/parse.t b/t/parse.t
index 6d80265..6ebe8fe 100644
--- a/t/parse.t
+++ b/t/parse.t
@@ -3,10 +3,15 @@
use strict;
use warnings;
-use Test::More tests => 41;
+use Test::More;
use MDV::Packdrakeng;
use URPM;
use URPM::Build;
+if (`uname -a` =~ /BSD/i) {
+ plan skip_all => "*BSD fails those";
+} else {
+ plan tests => 41;
+}
chdir 't' if -d 't';
diff --git a/t/rpmdb.t b/t/rpmdb.t
index b9ffb5f..fd4db8f 100644
--- a/t/rpmdb.t
+++ b/t/rpmdb.t
@@ -4,8 +4,8 @@ use strict ;
use warnings ;
use Test::More;
use URPM;
-if (-e '/etc/debian_version') {
- plan skip_all => "Debian/Ubuntu do not have a system wide rpmdb";
+if (-e '/etc/debian_version' || `uname -a` =~ /BSD/i) {
+ plan skip_all => "*BSD/Debian/Ubuntu do not have a system wide rpmdb";
} else {
plan tests => 7;
}