From e4a89294657189920afffe87c2b902cedfd10978 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 15 Mar 2017 10:02:25 -0700 Subject: [PATCH] Delete openh264 repo definition during repo_setup This repo is causing problems for Branched update tests. The repo is not available for 26 at all yet. This shouldn't be a problem as the repo is disabled by default, but it seems that some things - at least realmd, as used in the FreeIPA enrolment tests - still try to update the repo's metadata when installing packages, and fail because it 404s. Since none of our tests actually needs this repo AFAIK, let's just delete it in repo_setup. --- lib/utils.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/utils.pm b/lib/utils.pm index ebcbe6d3..0328e188 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -358,5 +358,10 @@ sub _repo_setup_updates { sub repo_setup { # Run the appropriate sub-function for the job get_var("ADVISORY") ? _repo_setup_updates : _repo_setup_compose; + # This repo does not always exist for Rawhide or Branched, and + # some things (at least realmd) try to update the repodata for + # it even though it is disabled, and fail. At present none of the + # tests needs it, so let's just unconditionally nuke it. + assert_script_run "rm -f /etc/yum.repos.d/fedora-cisco-openh264.repo"; }