diff options
author | Ryan S. Arnold <ryan.arnold@linaro.org> | 2015-08-18 12:23:30 -0500 |
---|---|---|
committer | Ryan S. Arnold <ryan.arnold@linaro.org> | 2015-08-18 12:27:00 -0500 |
commit | aeaabe8dce9449f060c783a7d0f0ee303c379394 (patch) | |
tree | 1f2c1fe2a33107fcc5f9575606dbc077584298a2 /testsuite | |
parent | 8762edcb4722c13f5fb5d1e5d533880122784ebb (diff) |
testsuite/test.sh: Add sleep between fetch_http tests
Currently fetch_http tests which compare timestamps might complete too
quickly and thereby have the same timestamp. Timestamps are on a one
second granularity. This change forces a two second delay between
operations in order to force a delay.
Change-Id: I84d35a0b9c58e163a136ddac95290fc7f3f9aec2
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/test.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/test.sh b/testsuite/test.sh index 5f25e528..e142f39f 100755 --- a/testsuite/test.sh +++ b/testsuite/test.sh @@ -552,6 +552,10 @@ else fail "fetch_http infrastructure/gmp-5.1.3.tar.xz updated unexpectedly (force=no)" fi +# If the two operations happen within the same second then their timestamps will +# be equivalent. This sleep operation forces the timestamps apart. +sleep 2s + # Now try it with force on out="`force=yes fetch_http infrastructure/gmp-5.1.3.tar.xz 2>/dev/null`" if test $? -gt 0; then |