summaryrefslogtreecommitdiffstats
path: root/t/superuser--rpm.t
diff options
context:
space:
mode:
Diffstat (limited to 't/superuser--rpm.t')
-rw-r--r--t/superuser--rpm.t11
1 files changed, 10 insertions, 1 deletions
diff --git a/t/superuser--rpm.t b/t/superuser--rpm.t
index 9e4bad0a..71a16cb1 100644
--- a/t/superuser--rpm.t
+++ b/t/superuser--rpm.t
@@ -3,13 +3,22 @@
use strict;
use lib '.', 't';
use helper;
-use Test::More 'no_plan';
+use Config;
+use Test::More;
+
+if ($Config{archname} =~ /bsd/) {
+ plan skip_all => "we cannot build rpm-query-in-scriptlet on FreeBSD due to cpio failure";
+} else {
+ plan 'no_plan';
+}
+
my $name = 'rpm-query-in-scriptlet';
need_root_and_prepare();
system_('mkdir -p root/var/lib/rpm');
test_rpm_query_in_scriptlet();
+done_testing();
sub test_rpm_query_in_scriptlet {
system_("rpm --root $::pwd/root -i media/$name/$name*.rpm --nodeps");