summaryrefslogtreecommitdiffstats
path: root/t/helper.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-01-15 00:59:14 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-01-17 02:22:39 +0100
commit46387084f6d0e09207354daed3fe2531035d638d (patch)
tree3c9eced401f93afe20f9e4778e32694ae70c6795 /t/helper.pm
parentbd9042d1252f276d1d57fb172c2cb3e1b6847c10 (diff)
downloadurpmi-46387084f6d0e09207354daed3fe2531035d638d.tar
urpmi-46387084f6d0e09207354daed3fe2531035d638d.tar.gz
urpmi-46387084f6d0e09207354daed3fe2531035d638d.tar.bz2
urpmi-46387084f6d0e09207354daed3fe2531035d638d.tar.xz
urpmi-46387084f6d0e09207354daed3fe2531035d638d.zip
fix testsuite errors on CentOs (NVR vs NVRA)
where rpmquery default to outputing NVRA (vs NVR on Mageia) reuse check_installed_fullnames() where needed instead of introducing %{NVR}
Diffstat (limited to 't/helper.pm')
-rw-r--r--t/helper.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper.pm b/t/helper.pm
index 8cfdb35d..fb211359 100644
--- a/t/helper.pm
+++ b/t/helper.pm
@@ -140,7 +140,7 @@ sub system_should_fail {
sub check_installed_fullnames {
my (@names) = @_;
- is(`rpm -qa --root $::pwd/root | sort`, join('', map { "$_\n" } sort(@names)));
+ is(`rpm -qa --qf '%{NVR}\\n' --root $::pwd/root | sort`, join('', map { "$_\n" } sort(@names)));
}
sub check_installed_names {