mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-27 09:31:03 +00:00
ci: Set date in LAVA DUTs from NTP servers
The MinIO server is sometimes complaining about the submitted date being too off. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6135>
This commit is contained in:
parent
7f40db42a2
commit
cf8a8b764e
@ -355,7 +355,7 @@ arm64_test:
|
||||
extends:
|
||||
- .use-arm_test-base
|
||||
variables:
|
||||
FDO_DISTRIBUTION_TAG: &arm64_test "2020-07-28-libdrm"
|
||||
FDO_DISTRIBUTION_TAG: &arm64_test "2020-07-31-ntp"
|
||||
|
||||
.use-arm64_test:
|
||||
variables:
|
||||
|
@ -41,6 +41,7 @@ apt-get -y install --no-install-recommends \
|
||||
python3-pytest \
|
||||
python3-requests \
|
||||
python3-yaml \
|
||||
sntp \
|
||||
wget \
|
||||
xz-utils
|
||||
|
||||
|
@ -43,10 +43,6 @@ values['tags'] = args.lava_tags
|
||||
values['env_vars'] = env_vars
|
||||
values['deqp_version'] = args.deqp_version
|
||||
|
||||
# We need a sane date to check certificates, but don't want to wait to get
|
||||
# time from the network after boot.
|
||||
values['date'] = datetime.datetime.now().strftime("%Y%m%d %H%M")
|
||||
|
||||
f = open(os.path.splitext(os.path.basename(args.template))[0], "w")
|
||||
f.write(template.render(values))
|
||||
f.close()
|
||||
|
@ -73,7 +73,7 @@ actions:
|
||||
- mkdir -p /dev/pts
|
||||
- mount -t devpts devpts /dev/pts
|
||||
- echo "nameserver 8.8.8.8" > /etc/resolv.conf
|
||||
- date "+%Y%m%d %H%M" -s "{{ date }}"
|
||||
- for i in 1 2 3; do sntp -sS pool.ntp.org && break || sleep 2; done
|
||||
|
||||
|
||||
{% if env_vars %}
|
||||
|
@ -1,5 +1,5 @@
|
||||
variables:
|
||||
DISTRIBUTION_TAG: "2020-07-28-x86"
|
||||
DISTRIBUTION_TAG: "2020-07-31-ntp-2"
|
||||
|
||||
.kernel+rootfs:
|
||||
stage: container-2
|
||||
|
@ -73,7 +73,7 @@ actions:
|
||||
- mkdir -p /dev/pts
|
||||
- mount -t devpts devpts /dev/pts
|
||||
- echo "nameserver 8.8.8.8" > /etc/resolv.conf
|
||||
- date "+%Y%m%d %H%M" -s "{{ date }}"
|
||||
- for i in 1 2 3; do sntp -sS pool.ntp.org && break || sleep 2; done
|
||||
|
||||
|
||||
{% if env_vars %}
|
||||
|
Loading…
Reference in New Issue
Block a user