summaryrefslogtreecommitdiffstats
path: root/t/superuser--rpmnew.t
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/superuser--rpmnew.t
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/superuser--rpmnew.t')
-rw-r--r--t/superuser--rpmnew.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/superuser--rpmnew.t b/t/superuser--rpmnew.t
index 80a492c7..cb6e3e31 100644
--- a/t/superuser--rpmnew.t
+++ b/t/superuser--rpmnew.t
@@ -92,15 +92,15 @@ sub test {
my ($cmd, $v1, $v2, $v3) = @_;
system_("$cmd media/$medium_name/a-1-*.rpm");
- is(`rpm -qa --root $::pwd/root`, "a-1-1\n");
+ check_installed_fullnames("a-1-1");
check_content('a-1', @$v1);
system_("$cmd media/$medium_name/a-2-*.rpm");
- is(`rpm -qa --root $::pwd/root`, "a-2-1\n");
+ check_installed_fullnames("a-2-1");
check_content('a-2', @$v2);
system_("$cmd media/$medium_name/a-3-*.rpm");
- is(`rpm -qa --root $::pwd/root`, "a-3-1\n");
+ check_installed_fullnames("a-3-1");
check_content('a-3', @$v3);
system_("rpm --root $::pwd/root -e a");