summaryrefslogtreecommitdiffstats
path: root/t/superuser--failing-scriptlets.t
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-08-04 03:58:03 -0400
committerThierry Vignaud <thierry.vignaud@gmail.com>2015-08-04 18:00:35 +0200
commit654ffaa9caf78556b9759c18345b5ec9207f3c43 (patch)
treef588e881bfc7437f86a0ab9723bd9d8b1d39369b /t/superuser--failing-scriptlets.t
parent1e0eb1139e125f6009949fd61d5088d5cc9084db (diff)
downloadurpmi-654ffaa9caf78556b9759c18345b5ec9207f3c43.tar
urpmi-654ffaa9caf78556b9759c18345b5ec9207f3c43.tar.gz
urpmi-654ffaa9caf78556b9759c18345b5ec9207f3c43.tar.bz2
urpmi-654ffaa9caf78556b9759c18345b5ec9207f3c43.tar.xz
urpmi-654ffaa9caf78556b9759c18345b5ec9207f3c43.zip
do check that %%pretrans do fail (rpm-4.10+)
basically reverting commit 5d7414cd5dc0c7dbdfe5314df4253cb14f86e9b2 and inversing the test expected result needs rpm-4.12.90-2.mga6 or newer
Diffstat (limited to 't/superuser--failing-scriptlets.t')
-rw-r--r--t/superuser--failing-scriptlets.t6
1 files changed, 1 insertions, 5 deletions
diff --git a/t/superuser--failing-scriptlets.t b/t/superuser--failing-scriptlets.t
index 186e182f..1f0f733f 100644
--- a/t/superuser--failing-scriptlets.t
+++ b/t/superuser--failing-scriptlets.t
@@ -4,17 +4,13 @@ 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');
-#%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_fail('pretrans');
test_install_rpm('post');
test_install_rpm('preun');
test_install_rpm('postun');