From 006891ac8b1bbfee6795b05f6c364232028ad6b8 Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Fri, 2 Jun 2023 18:10:45 +0000 Subject: [PATCH] tests: use the correct copr chroot for EPEL branches --- tests/smoke.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/smoke.sh b/tests/smoke.sh index ab72bba..14eeea6 100755 --- a/tests/smoke.sh +++ b/tests/smoke.sh @@ -10,7 +10,13 @@ localhost ansible_connection=local EOF export ANSIBLE_INVENTORY=inventory -ansible localhost -bm setup +chroot="fedora-rawhide-x86_64" + +ansible localhost -bm setup |& tee out + +if ! grep Fedora out; then + chroot="epel-9-x86_64" +fi ansible localhost -b \ -m package \ @@ -21,13 +27,13 @@ grep -F 'localhost | SUCCESS' out ansible localhost -b \ -m community.general.copr \ - -a "name=gotmax23/community.general.copr_integration_tests chroot=fedora-rawhide-x86_64" \ + -a "name=gotmax23/community.general.copr_integration_tests chroot=${chroot}" \ |& tee out grep -F 'localhost | CHANGED' out ansible localhost -b \ -m package \ - -a name=copr-module-integration-dummy-package \ + -a name=copr-module-integration-dummy-package \ |& tee out grep -F 'localhost | CHANGED' out