From d71daa1fe4c90b473214b06aa7d59bd619653103 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 15 Aug 2019 13:36:25 -0700 Subject: [PATCH] Do the metalink->mirrorlist dodge in live_build mock config This avoids hitting slow metadata downloads in mock env. Signed-off-by: Adam Williamson --- tests/_live_build.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/_live_build.pm b/tests/_live_build.pm index 46d20b2a..08bc8d97 100644 --- a/tests/_live_build.pm +++ b/tests/_live_build.pm @@ -22,6 +22,8 @@ sub run { assert_script_run "head -n-1 /etc/mock/fedora-${version}-${arch}.cfg >> /etc/mock/openqa.cfg"; # now add the side repo to the config assert_script_run 'printf "[advisory]\nname=Advisory repo\nbaseurl=file:///opt/update_repo\nenabled=1\nmetadata_expire=3600\ngpgcheck=0\n\"\"\"" >> /etc/mock/openqa.cfg'; + # replace metalink with mirrorlist so we don't get slow mirrors + assert_script_run "sed -i -e 's,metalink,mirrorlist,g' /etc/mock/openqa.cfg"; # upload the config so we can check it's OK upload_logs "/etc/mock/openqa.cfg"; # now check out the kickstarts