From fe3aa8f6e94e59e8e4eaa0830163b286cb0f6e93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 6 Mar 2020 15:05:24 +0100 Subject: [PATCH] Fedora CI: Add support for Zuul based CI --- tests/mocktest.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/mocktest.sh b/tests/mocktest.sh index d357309..a898d99 100755 --- a/tests/mocktest.sh +++ b/tests/mocktest.sh @@ -18,7 +18,15 @@ if [ ! -f $config ]; then cp $original $config echo -e '\n\nconfig_opts[f"{config_opts.package_manager}.conf"] += """' >> $config - cat /etc/yum.repos.d/test-*.repo >> $config + + # The zuul CI has zuul-build.repo + # The Jenkins CI has test-.repo + # We run this code from various packages, so we support any + if [ -f /etc/yum.repos.d/zuul-build.repo ]; then + cat /etc/yum.repos.d/zuul-build.repo >> $config + else + cat /etc/yum.repos.d/test-*.repo >> $config + fi echo -e '\n"""\n' >> $config fi