summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-11-19 02:41:37 +0100
committerHolger Levsen <holger@layer-acht.org>2015-11-19 03:51:34 +0100
commited4192bf85162cfbdbacf4a9b009c61dfd076965 (patch)
tree3ba640f25ec2182a9186550d7b3c124f04b26e58 /bin
parentb8dc18fa5cc6e7ea954f0a6d494173f8ccf2d4ff (diff)
downloadjenkins.debian.net-ed4192bf85162cfbdbacf4a9b009c61dfd076965.tar.xz
torbrowser tests: allow the download to take up to 15 minutes
Diffstat (limited to 'bin')
-rwxr-xr-xbin/test_torbrowser-launcher.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/test_torbrowser-launcher.sh b/bin/test_torbrowser-launcher.sh
index 6b659a1f..e81f27cf 100755
--- a/bin/test_torbrowser-launcher.sh
+++ b/bin/test_torbrowser-launcher.sh
@@ -189,7 +189,9 @@ download_and_launch() {
cleanup_duplicate_screenshots
exit 1
fi
- for i in $(seq 1 40) ; do
+ # allow the download to take up to 15 minutes
+ # we watch the download directory and parse torbrowser-launchers stdout, so usually this loop won't run this long
+ for i in $(seq 1 60) ; do
sleep 15
STATUS="$(grep '^Download error:' $TBL_LOGFILE || true)"
if [ -n "$STATUS" ] ; then
@@ -203,7 +205,6 @@ download_and_launch() {
STATUS="$(schroot --run-session -c $SESSION -- test ! -d $HOME/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/Browser -a ! -d $HOME/.local/share/torbrowser/tbb/x86_64/tor-browser_de/Browser || echo $(date -u ) - torbrowser downloaded and installed, configuring tor now. )"
if [ -n "$STATUS" ] ; then
- sleep 10
update_screenshot
break
fi