summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdocs/releasetests.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/releasetests.sh b/docs/releasetests.sh
index 6a2c637..3b12c5d 100755
--- a/docs/releasetests.sh
+++ b/docs/releasetests.sh
@@ -32,8 +32,9 @@ make src/daemontest
# most tests below will use this mock command line
#
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
+uniqueext="$$-$RANDOM"
+MOCKCMD="sudo ./py/mock.py --resultdir=$TOP_SRCTREE/mock-unit-test --uniqueext=$uniqueext -r $testConfig"
+CHROOT=/var/lib/mock/${testConfig}-$uniqueext/root
# clear out any old test results
sudo rm -rf $TOP_SRCTREE/mock-unit-test
@@ -106,7 +107,7 @@ fi
# Test build all configs we ship.
#
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)
+ time sudo ./py/mock.py --resultdir=$TOP_SRCTREE/mock-unit-test --uniqueext=$uniqueext rebuild mock-*.src.rpm -r $(basename $i .cfg)
done