Pierre Riteau a4f623b91f Replace pause with chronyc waitsync in ntp sync
`chronyc waitsync 60 0.01` will wait up to about 10 minutes (60 times 10
seconds) for chronyd to synchronise to a source and the remaining
correction to be less than 10 milliseconds [1].

Also flush handlers to restart chronyd before synchronising the clock.

Force system clock synchronisation in CI jobs. This allows us to run
test_ntp_clock_synchronized on Ubuntu again.

[1] https://chrony-project.org/doc/4.6.1/chronyc.html

Change-Id: I73e7f2a3258e5427ec16b01e7482093d7bfb33f8
(cherry picked from commit 8dd05487d4ef872e7d3467e74fd6ab5141361d68)
2025-03-04 08:37:10 +00:00
..
2020-07-24 09:11:45 +01:00
2024-03-27 15:07:08 +00:00