diff options
author | Daniel Stone <daniels@collabora.com> | 2021-06-11 15:45:44 +0100 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2021-06-15 14:02:44 +0200 |
commit | 62de8f913aff1a60b56fe663f561eb7ca7d9a9ab (patch) | |
tree | b7179bdb7f7ff612ed2ce9649f33c658730406a9 /.gitlab-ci | |
parent | 3c757aa44f51409143fe4e4334b4257bd6ab5db6 (diff) |
ci/bare-metal: Try harder to do NTP
Same as LAVA does.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Acked-by: Martin Peres <martin.peres@mupuf.org>
Acked-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11337>
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x | .gitlab-ci/bare-metal/init.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.gitlab-ci/bare-metal/init.sh b/.gitlab-ci/bare-metal/init.sh index b8b41b46a49..50d17302951 100755 --- a/.gitlab-ci/bare-metal/init.sh +++ b/.gitlab-ci/bare-metal/init.sh @@ -18,8 +18,9 @@ export XDG_CACHE_HOME=/tmp echo "nameserver 8.8.8.8" > /etc/resolv.conf -# Not all DUTs have network -sntp -sS pool.ntp.org || true +# Set the time so we can validate certificates before we fetch anything; +# however as not all DUTs have network, make this non-fatal. +for i in 1 2 3; do sntp -sS pool.ntp.org && break || sleep 2; done || true # Start a little daemon to capture the first devcoredump we encounter. (They # expire after 5 minutes, so we poll for them). |