From 256731a63a9706fd14dcdaec2cc81ab07129e0d8 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 13 Jan 2025 15:13:33 -0800 Subject: [PATCH] ostree_build: ensure python3-rpm is available for updvercheck We've *usually* already installed it for bodhi or koji clients (on the update and task paths), but on the COPR path, we have not, and updvercheck crashes. If it's already there this will do nothing and return 0 so it's OK. Signed-off-by: Adam Williamson --- tests/_ostree_build.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/_ostree_build.pm b/tests/_ostree_build.pm index 3266e6ae..8400dfb0 100644 --- a/tests/_ostree_build.pm +++ b/tests/_ostree_build.pm @@ -103,6 +103,8 @@ sub run { $cmd .= " --repo=/etc/yum.repos.d/openqa-testtag.repo" if ($tag || $copr); $cmd .= " ./results"; assert_script_run $cmd, 9000; + # needed for updvercheck, usually here already but not on COPR path + assert_script_run 'dnf -y install python3-rpm', 180; # do a package version check on the packages installed to the # installer environment - see # https://pagure.io/releng/failed-composes/issue/6538#comment-917347