summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Callaghan <dcallagh@redhat.com>2013-01-15 10:58:58 +1000
committerDan Callaghan <dcallagh@redhat.com>2013-01-15 10:58:58 +1000
commitdb7b0eaf6de7b4768c9348676866a5d9f2ee2327 (patch)
tree809acdef7bd4dffbaf33676b1fbbc110dfc7cd2f
parent0c2acf5b3cb5d635761a07674ac7d8a17a71c27b (diff)
/distribution/beaker/setup: clean up yum config hackerybeaker-distribution-beaker-setup-1_4-88
This is to avoid breaking subsequent tests when /tmp/tito goes away. Change-Id: I9584bc83a7748900388a4482cdb3161c14748861
-rwxr-xr-xTasks/distribution/beaker/setup/runtest.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tasks/distribution/beaker/setup/runtest.sh b/Tasks/distribution/beaker/setup/runtest.sh
index e052190..b9cc9de 100755
--- a/Tasks/distribution/beaker/setup/runtest.sh
+++ b/Tasks/distribution/beaker/setup/runtest.sh
@@ -33,7 +33,7 @@ function BuildBeaker ()
rlRun "tito build --rpm --test"
rlRun "popd"
rlRun "createrepo /tmp/tito/noarch/"
- cat >/etc/yum.repos.d/tito.repo <<"EOF"
+ cat >/etc/yum.repos.d/beaker-local-builds.repo <<"EOF"
[tito]
name=tito
baseurl=file:///tmp/tito/noarch/
@@ -248,6 +248,7 @@ if $(echo $CLIENTS | grep -q $HOSTNAME); then
SERVER=$(echo $SERVERS | awk '{print $1}')
[[ $SOURCE == "_git" ]] && BuildBeaker
LabController
+ rm -f /etc/yum.repos.d/beaker-local-builds.repo
exit 0
fi
@@ -256,6 +257,7 @@ if $(echo $SERVERS | grep -q $HOSTNAME); then
TEST="$TEST/inventory"
[[ $SOURCE == "_git" ]] && BuildBeaker
Inventory
+ rm -f /etc/yum.repos.d/beaker-local-builds.repo
exit 0
fi
@@ -268,6 +270,7 @@ if [ -z "$SERVERS" -o -z "$CLIENTS" ]; then
TEST="$TEST/lab_controller" LabController &
sleep 120
TEST="$TEST/inventory" Inventory
+ rm -f /etc/yum.repos.d/beaker-local-builds.repo
exit 0
fi