summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-04-29 18:12:02 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-05-01 00:35:08 +0200
commit378c25612aa4b202bf3b55182b9bab5a83890a02 (patch)
tree9e04be05eecd73de466e8edd95d8bcfac8b4ab22 /t
parent7446f94c052a40a5f21253b97a0fd36495ea7ed8 (diff)
downloadurpmi-378c25612aa4b202bf3b55182b9bab5a83890a02.tar
urpmi-378c25612aa4b202bf3b55182b9bab5a83890a02.tar.gz
urpmi-378c25612aa4b202bf3b55182b9bab5a83890a02.tar.bz2
urpmi-378c25612aa4b202bf3b55182b9bab5a83890a02.tar.xz
urpmi-378c25612aa4b202bf3b55182b9bab5a83890a02.zip
fix running testsuite with rpm-4.9
Basically restoring commit 654ffaa9caf78556b9759c18345b5ec9207f3c43 for older rpm
Diffstat (limited to 't')
-rw-r--r--t/superuser--failing-scriptlets.t7
1 files changed, 6 insertions, 1 deletions
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') {