Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian QA
jenkins.debian.net
Commits
8d423bd1
Commit
8d423bd1
authored
Mar 01, 2016
by
Holger Levsen
Browse files
torbrowser tests: allow download via tor to take 10 more minutes
parent
6a20ebfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/test_torbrowser-launcher.sh
View file @
8d423bd1
...
@@ -283,10 +283,14 @@ download_and_launch() {
...
@@ -283,10 +283,14 @@ download_and_launch() {
if
[
-n
"
$SETTINGS_DONE
"
]
;
then
if
[
-n
"
$SETTINGS_DONE
"
]
;
then
announce_failure_and_exit
"
$(
date
-u
)
- settings dialog still there, please investigate."
announce_failure_and_exit
"
$(
date
-u
)
- settings dialog still there, please investigate."
fi
fi
# allow the download to take up to ~22 minutes (1323 seconds)
if
$VIA_TOR
;
then
MAX_LOOP
=
52
# allow the download to take up to ~31 minutes (1898 seconds) via tor
else
MAX_LOOP
=
42
# allow the download to take up to ~22 minutes (1323 seconds) via https
fi
# ( echo -n "0" ; for i in $(seq 1 42) ; do echo -n "+$i+10" ; done ; echo ) | bc
# ( echo -n "0" ; for i in $(seq 1 42) ; do echo -n "+$i+10" ; done ; echo ) | bc
# we watch the download directory and parse torbrowser-launchers stdout, so usually this loop won't run this long
# we watch the download directory and parse torbrowser-launchers stdout, so usually this loop won't run this long
for
i
in
$(
seq
1
42
)
;
do
for
i
in
$(
seq
1
$MAX_LOOP
)
;
do
sleep
10
;
sleep
$i
sleep
10
;
sleep
$i
STATUS
=
"
$(
grep
'^Download error:'
$TBL_LOGFILE
||
true
)
"
STATUS
=
"
$(
grep
'^Download error:'
$TBL_LOGFILE
||
true
)
"
if
[
-n
"
$STATUS
"
]
;
then
if
[
-n
"
$STATUS
"
]
;
then
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment