summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Peck <bpeck@redhat.com>2015-01-27 10:25:57 -0500
committerBill Peck <bpeck@redhat.com>2015-01-27 10:25:57 -0500
commit73c5ba8da9d4015a811d558337c7c16973778cf2 (patch)
treefbd82de1d2971899e5eee595ac9fdc116a41ed5f
parentf22e3edb5b37fa2b8accc38e1ab55c67f098ea97 (diff)
downloadtests-73c5ba8da9d4015a811d558337c7c16973778cf2.tar.gz
tests-73c5ba8da9d4015a811d558337c7c16973778cf2.tar.xz
tests-73c5ba8da9d4015a811d558337c7c16973778cf2.zip
Report pass or fail
-rwxr-xr-xdistribution/addrepo/runtest.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/distribution/addrepo/runtest.sh b/distribution/addrepo/runtest.sh
index 8bb53b6..6f0f70d 100755
--- a/distribution/addrepo/runtest.sh
+++ b/distribution/addrepo/runtest.sh
@@ -2,10 +2,11 @@
if [ -z "$REPOURL" ]; then
echo "You need to specify \$REPOURL"
+rstrnt-report-result $RSTRNT_TASKNAME FAIL
exit 1
fi
-REPONAME=${REPONAME:="postrepo0"}
+REPONAME=${REPONAME:="postrepo_${RSTRNT_TASKID}"}
cat << EOF >/etc/yum.repos.d/${REPONAME}.repo
[${REPONAME}]
name=${REPONAME}
@@ -15,4 +16,5 @@ gpgcheck=0
skip_if_unavailable=1
EOF
+rstrnt-report-result $RSTRNT_TASKNAME PASS
exit 0