]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: make 007-cmdmon test more reliable
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 26 May 2025 14:33:31 +0000 (16:33 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 27 May 2025 08:56:27 +0000 (10:56 +0200)
test/system/007-cmdmon

index 954a15bb38dcf5a9099c0db447a9b8fc8f958801..4660ffad768fc5c556e0086c5b1a5552b06141a7 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
@@ -107,7 +107,7 @@ Total HW RX     : 0$" || test_fail
 run_chronyc "selectdata" || test_fail
 check_chronyc_output "^S Name/IP Address        Auth COpts EOpts Last Score     Interval  Leap
 =======================================================================
-M 127\.0\.0\.1                 N -PTR- -PTR-    0   1\.0    \+0ns    \+0ns  \?$" || test_fail
+M 127\.0\.0\.1                 N -PTR- -PTR-    0   1\.0    \+0ns    \+0ns  [\?N]$" || test_fail
 
 run_chronyc "serverstats" || test_fail
 check_chronyc_output "^NTP packets received       : [0-9]+