From 1201b8b669c676cc5ca4ef1b82b24c4730d27eb4 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Mon, 15 Nov 2021 10:54:30 -0800 Subject: [PATCH] tests: Only use repo files In some cases a directory ending in repo could be included in the list, causing the test to fail. Resolves: rhbz#2023457 --- tests/scripts/run_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh index 841c590..93230e8 100755 --- a/tests/scripts/run_tests.sh +++ b/tests/scripts/run_tests.sh @@ -151,7 +151,7 @@ if [ ! -e /usr/share/lorax/templates.d/80-rhel/ ]; then fi # Gather up the list of system repo files and use them for lorax -REPOS=$(for f in /etc/yum.repos.d/*repo; do echo -n "--repo $f "; done) +REPOS=$(find /etc/yum.repos.d/ -maxdepth 1 -type f -name '*\.repo' -exec echo -n "--repo {} " \;) if [ -z "$REPOS" ]; then echo "No system repos found" exit 1