From 6a36fe28d105d1d66c45370b11e680c53a27f062 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Sat, 14 Jan 2023 02:57:38 -0800 Subject: [PATCH] Handle a false failure when testing koji updates Signed-off-by: Adam Williamson --- lib/utils.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/utils.pm b/lib/utils.pm index e887f055..18de4a20 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -670,6 +670,11 @@ sub _repo_setup_updates { # already and we want to fail if they weren't, or CANNED # tests, there's no point updating the toolbox script_run "dnf -y update", 900 unless (get_var("UPGRADE") || get_var("INSTALL") || get_var("CANNED")); + # however, on liveinst tests, we need to update the packages + # we installed above, just in case they're in the update + # under test; otherwise we get a bogus failure for the package + # not being updated + script_run "dnf -y update bodhi-client createrepo koji", 600 if (get_var("INSTALL") && !get_var("CANNED")); } # exit the toolbox on CANNED if (get_var("CANNED")) {