summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael E Brown <mebrown@michaels-house.net>2007-12-04 22:42:05 -0600
committerMichael E Brown <mebrown@michaels-house.net>2007-12-04 22:42:05 -0600
commit3e661e15cf787a795a8401a0d52db0447575ba67 (patch)
treeb7829eae03dcb87eb676d95441a0eda45f07e83e
parent8d186a76ca3f9511e69af63acd39c270ae61c046 (diff)
downloadmock-3e661e15cf787a795a8401a0d52db0447575ba67.tar.gz
mock-3e661e15cf787a795a8401a0d52db0447575ba67.tar.xz
mock-3e661e15cf787a795a8401a0d52db0447575ba67.zip
clear out old unit tests before starting new ones.
-rwxr-xr-xdocs/releasetests.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/releasetests.sh b/docs/releasetests.sh
index 79e13dc..4b0f17e 100755
--- a/docs/releasetests.sh
+++ b/docs/releasetests.sh
@@ -35,6 +35,9 @@ testConfig=fedora-8-x86_64
MOCKCMD="sudo ./py/mock.py --resultdir=$TOP_SRCTREE/mock-unit-test --uniqueext=unittest -r $testConfig"
CHROOT=/var/lib/mock/${testConfig}-unittest/root
+# clear out any old test results
+sudo rm -rf $TOP_SRCTREE/mock-unit-test
+
#
# pre-populate yum cache for the rest of the commands below
#
@@ -99,7 +102,6 @@ fi
#
# Test build all configs we ship.
#
-sudo rm -rf $TOP_SRCTREE/mock-unit-test
for i in $(ls etc/mock | grep .cfg | grep -v default | grep -v ppc); do
time sudo ./py/mock.py --resultdir=$TOP_SRCTREE/mock-unit-test --uniqueext=unittest rebuild mock-*.src.rpm -r $(basename $i .cfg)
done