summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/superuser--failing-scriptlets.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/superuser--failing-scriptlets.t b/t/superuser--failing-scriptlets.t
index 740e4369..9d8a5929 100644
--- a/t/superuser--failing-scriptlets.t
+++ b/t/superuser--failing-scriptlets.t
@@ -4,13 +4,17 @@ use strict;
use lib '.', 't';
use helper;
use Test::More 'no_plan';
+require urpm::select;
my $medium_name = 'failing-scriptlets';
need_root_and_prepare();
test_install_rpm_fail('pre');
-test_install_rpm('pretrans');
+#%pretrans scriptlet failure now fails the install of the package (similarly to %pre and %preun semantics):
+if (urpm::select::_rpm_version() lt 4.10.0) {
+ test_install_rpm('pretrans');
+}
test_install_rpm('post');
test_install_rpm('preun');
test_install_rpm('postun');