summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--t/superuser--failing-scriptlets.t7
2 files changed, 7 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index bcb74169..7545da09 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
- cpan_testers:
o do not skip network tests on pre-UsrMove distros (eg: Mageia 2)
+ o fix running testsuite with rpm-4.9
Version 8.122 - 28 April 2020
diff --git a/t/superuser--failing-scriptlets.t b/t/superuser--failing-scriptlets.t
index 73adcada..dcd0b387 100644
--- a/t/superuser--failing-scriptlets.t
+++ b/t/superuser--failing-scriptlets.t
@@ -4,13 +4,18 @@ 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_fail('pretrans');
+if (urpm::select::_rpm_version() lt 4.10.0) {
+ test_install_rpm('pretrans');
+} else {
+ test_install_rpm_fail('pretrans');
+}
test_install_rpm('post');
require urpm::select;
if (urpm::select::_rpm_version() lt 4.13.0 && -e '/etc/mageia-release') {