summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-12-18 11:32:11 +0100
committerHolger Levsen <holger@layer-acht.org>2015-12-18 11:32:11 +0100
commit714a5bad74585f1a3e5d46b25ddcac0fedf0a975 (patch)
tree614449a6c5c165dec3fee5b4e536d576f63fe609
parent3ba30d9c08c56486459554f6ff41c3d4dbefa448 (diff)
downloadjenkins.debian.net-714a5bad74585f1a3e5d46b25ddcac0fedf0a975.tar.xz
torbrowser tests: add more sleep delays so screenshots can be nicely taken even if the system is loaded
-rwxr-xr-xbin/test_torbrowser-launcher.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/test_torbrowser-launcher.sh b/bin/test_torbrowser-launcher.sh
index ddb1534a..46967367 100755
--- a/bin/test_torbrowser-launcher.sh
+++ b/bin/test_torbrowser-launcher.sh
@@ -231,7 +231,7 @@ download_and_launch() {
export PYTHONUNBUFFERED=true
prepare_lauchner_settings
( timeout -k 30m 29m schroot --run-session -c $SESSION --preserve-environment -- /usr/bin/torbrowser-launcher --settings 2>&1 |& tee $TBL_LOGFILE || true ) &
- sleep 10
+ sleep 20
update_screenshot
echo "$(date -u) - pressing <tab>"
xvkbd -text "\t" > /dev/null 2>&1
@@ -280,8 +280,8 @@ download_and_launch() {
announce_failure_and_exit "$(date -u) - could not download torbrowser, please investigate."
fi
echo "$(date -u) - waiting for torbrowser to start the tor network settings dialogue."
- # allow up to 63 seconds for torbrowser to start the tor network settings dialogue
- for i in $(seq 1 7) ; do
+ # allow up to 90 seconds for torbrowser to start the tor network settings dialogue
+ for i in $(seq 1 9) ; do
sleep 5 ; sleep $i
# this directory only exists once torbrower has successfully started
# (and pattern matching doesnt work because of schroot…)
@@ -372,7 +372,7 @@ download_and_launch() {
fi
# sleep is added here, so xterm + notification come up nicely
schroot --run-session -c $SESSION --preserve-environment -- xterm -geometry 1024x230+0+520 $STATUS_COLORS -fa 'DejaVuSansMono' -fs 18 -hold -T '$(date +'%a %d %b')' -e "echo ; figlet -c -f banner -w 68 '$(date +'%a %d %b')'" 2>/dev/null || true &
- sleep 1
+ sleep 4
echo "'$(date -u) - torbrowser tests end. $STATUS_MSG'" | tee | xargs schroot --run-session -c $SESSION --preserve-environment -- notify-send
sleep 0.5
update_screenshot