summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2018-07-02 15:42:57 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2018-07-02 16:00:52 +0200
commit8398de7b4480debefef750d8734a9982cd48d3ea (patch)
treef0d3d6dee3dea41ac26d9b173cd93110b200f6b1
parent99ea7f866713a84fcc027b1d584546bb0169ee0e (diff)
downloadurpmi-8398de7b4480debefef750d8734a9982cd48d3ea.tar
urpmi-8398de7b4480debefef750d8734a9982cd48d3ea.tar.gz
urpmi-8398de7b4480debefef750d8734a9982cd48d3ea.tar.bz2
urpmi-8398de7b4480debefef750d8734a9982cd48d3ea.tar.xz
urpmi-8398de7b4480debefef750d8734a9982cd48d3ea.zip
fix buggy rpms test with rpm-4.14.2
explanations: rpm-4.14.2 spits more error messsages which can mess up Test::* if eg some space or other characters happen before "ok X" so just redirect all rpm output to /dev/null
-rw-r--r--t/superuser--buggy-rpms.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/superuser--buggy-rpms.t b/t/superuser--buggy-rpms.t
index 34bacbdd..256f45f8 100644
--- a/t/superuser--buggy-rpms.t
+++ b/t/superuser--buggy-rpms.t
@@ -13,7 +13,8 @@ open STDERR, '>/dev/null';
my @pkgs = map { "data/rpm-buggy/$_" } 'invalid-signature.rpm', 'not-a-rpm.rpm', 'weird-header.rpm';
foreach (@pkgs) {
- system("rpm -K $_");
+ # rpm-4.14.2's errors messages mess up with TAP:
+ system("rpm -K $_ &>/dev/null");
is($?, 1 << 8, "rpm -K $_");
system(urpmi_cmd() . " $_");