From ed4192bf85162cfbdbacf4a9b009c61dfd076965 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 19 Nov 2015 02:41:37 +0100 Subject: torbrowser tests: allow the download to take up to 15 minutes --- bin/test_torbrowser-launcher.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2