diff options
author | Bill Peck <bpeck@redhat.com> | 2015-11-11 11:54:53 -0500 |
---|---|---|
committer | Bill Peck <bpeck@redhat.com> | 2015-11-11 11:54:53 -0500 |
commit | 5ae1be5fbff141ec7c97aa32ba996188bd1ed60c (patch) | |
tree | b5a5d35a367f3cf223c229b33f3a8498f27afbfb | |
parent | 2b50ee80cbad0eba65e12379f1edcabcfc6e3458 (diff) | |
download | tests-master.tar.gz tests-master.tar.xz tests-master.zip |
Support multiple repos in REPOURL separated by ;master
-rwxr-xr-x | distribution/addrepo/runtest.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/distribution/addrepo/runtest.sh b/distribution/addrepo/runtest.sh index 6f0f70d..40b1ff1 100755 --- a/distribution/addrepo/runtest.sh +++ b/distribution/addrepo/runtest.sh @@ -6,15 +6,22 @@ rstrnt-report-result $RSTRNT_TASKNAME FAIL exit 1 fi -REPONAME=${REPONAME:="postrepo_${RSTRNT_TASKID}"} -cat << EOF >/etc/yum.repos.d/${REPONAME}.repo +OFS=$IFS +IFS=";" +num=1 +for repo in $REPOURL; do + REPONAME=${REPONAME:="postrepo"}_$num + cat << EOF >/etc/yum.repos.d/${REPONAME}.repo [${REPONAME}] name=${REPONAME} -baseurl=$(eval echo ${REPOURL}) +baseurl=$repo enabled=1 gpgcheck=0 skip_if_unavailable=1 EOF + num=$(expr $num + 1) +done +IFS=$OFS rstrnt-report-result $RSTRNT_TASKNAME PASS exit 0 |