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