summaryrefslogtreecommitdiffstats
path: root/bin/schroot-create.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-01-28 01:48:52 +0100
committerHolger Levsen <holger@layer-acht.org>2016-01-28 01:48:52 +0100
commit5d2cebd08ea4e179ac74ff4ca8465f1ae952174b (patch)
tree20b0f2851060b7ed10cddb059ed36d6fb15d1839 /bin/schroot-create.sh
parent26bb5819cec560c99d4f233cb798c1e1a4960bfc (diff)
downloadjenkins.debian.net-5d2cebd08ea4e179ac74ff4ca8465f1ae952174b.tar.xz
torbrowser tests: avoid suboptimal cleanup…
Diffstat (limited to 'bin/schroot-create.sh')
-rwxr-xr-xbin/schroot-create.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh
index 934ff38d..6b4fae7d 100755
--- a/bin/schroot-create.sh
+++ b/bin/schroot-create.sh
@@ -215,7 +215,10 @@ trap - INT TERM EXIT
rand=$RANDOM
if [ -d $SCHROOT_BASE/"$TARGET" ]
then
- cleanup_schroot_sessions
+ # no needed for torbrowser-launcher as race conditions are mostly avoided by timings
+ if [ "${TARGET:0:19}" != "torbrowser-launcher" ] ; then
+ cleanup_schroot_sessions
+ fi
echo "$(date -u ) - $SCHROOT_BASE/$TARGET exists, moving it away to $SCHROOT_BASE/$TARGET-$rand"
set +e
sudo mv $SCHROOT_BASE/"$TARGET" $SCHROOT_BASE/"$TARGET"-"$rand"