Change-Id: I85d426b9167eb53777d0684d4f7f3249a6a48f3a
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
function cleanup
{
timedatectl set-ntp true
+ # The false dates used in the tests are far in the past
+ # and it may take some time for the ntp update to actually
+ # happen.
+ # If the date is still in the past, it is possible that
+ # subsequent steps will fail (eg. TLS certificates cannot
+ # be validated).
+ while [[ "$(date +%Y)" -lt "2024" ]] ; do
+ sleep 1
+ done
}
trap cleanup EXIT SIGINT SIGTERM
find tests/ -iname '*.trs' -print0 -or -iname '*.log' -print0 | tar czf /tmp/coredump/logs.tgz --null -T -
fi
-timedatectl set-ntp true
exit $failed_tests