Show More
@@ -11,9 +11,12 b' fi' | |||
|
11 | 11 | |
|
12 | 12 | timer="$1" |
|
13 | 13 | |
|
14 | # if the test timeout have been extended, explicitly extend the provided timer | |
|
14 | # Scale the timeout to match the sleep steps below, i.e. 1/0.02. | |
|
15 | timer=$(( 50 * $timer )) | |
|
16 | # If the test timeout have been extended, also scale the timer relative | |
|
17 | # to the normal timing. | |
|
15 | 18 | if [ "$HGTEST_TIMEOUT_DEFAULT" -lt "$HGTEST_TIMEOUT" ]; then |
|
16 |
timer=$(( ( |
|
|
19 | timer=$(( ( $timer * $HGTEST_TIMEOUT) / $HGTEST_TIMEOUT_DEFAULT )) | |
|
17 | 20 | fi |
|
18 | 21 | |
|
19 | 22 | wait_on="$2" |
@@ -28,7 +31,7 b' if [ -n "$create" ]; then' | |||
|
28 | 31 | fi |
|
29 | 32 | while [ "$timer" -gt 0 ] && [ ! -f "$wait_on" ]; do |
|
30 | 33 | timer=$(( $timer - 1)) |
|
31 |
sleep 0.0 |
|
|
34 | sleep 0.02 | |
|
32 | 35 | done |
|
33 | 36 | if [ "$timer" -le 0 ]; then |
|
34 | 37 | echo "file not created after $1 seconds: $wait_on" >&2 |
General Comments 0
You need to be logged in to leave comments.
Login now