1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-25 15:23:08 +00:00

Handle a false failure when testing koji updates

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2023-01-14 02:57:38 -08:00
parent da18856ed3
commit 6a36fe28d1

View File

@ -670,6 +670,11 @@ sub _repo_setup_updates {
# already and we want to fail if they weren't, or CANNED # already and we want to fail if they weren't, or CANNED
# tests, there's no point updating the toolbox # tests, there's no point updating the toolbox
script_run "dnf -y update", 900 unless (get_var("UPGRADE") || get_var("INSTALL") || get_var("CANNED")); 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 # exit the toolbox on CANNED
if (get_var("CANNED")) { if (get_var("CANNED")) {