]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: make 007-cmdmon test even more reliable
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 27 Oct 2025 14:57:05 +0000 (15:57 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 4 Nov 2025 13:44:09 +0000 (14:44 +0100)
The last hit value in the clients report may be "-", because there is
a backward step of the clock caused by the doffset and reset sources
commands.

test/system/007-cmdmon

index 4660ffad768fc5c556e0086c5b1a5552b06141a7..3fd88fa3239a59c760ab3aeb8c66339fd82d5172 100755 (executable)
@@ -68,7 +68,7 @@ check_chronyc_output "^Name/IP address             Mode KeyID Type KLen Last Atm
 run_chronyc "clients" || test_fail
 check_chronyc_output "^Hostname                      NTP   Drop Int IntL Last     Cmd   Drop Int  Last
 ===============================================================================
-.*127\.0\.0\.1               [0-9 ]+    0 [-0-9 ]+   -  [ 0-9]+       0      0   -     -.*$" \
+.*127\.0\.0\.1               [0-9 ]+    0 [-0-9 ]+   -  [-0-9 ]+       0      0   -     -.*$" \
        || test_fail
 
 run_chronyc "ntpdata $server" || test_fail