test: make 007-cmdmon test more reliable

This commit is contained in:
Miroslav Lichvar 2020-10-01 10:19:46 +02:00
parent 642173e864
commit df43ebe9e0

View file

@ -64,7 +64,7 @@ check_chronyc_output "^Name/IP address Mode KeyID Type KLen Last Atm
run_chronyc "clients" || test_fail run_chronyc "clients" || test_fail
check_chronyc_output "^Hostname NTP Drop Int IntL Last Cmd Drop Int Last check_chronyc_output "^Hostname NTP Drop Int IntL Last Cmd Drop Int Last
=============================================================================== ===============================================================================
127\.0\.0\.1 [1-9] 0 - - [0-9] 0 0 - -$" \ 127\.0\.0\.1 [0-9 ]+ 0 [-0-9 ]+ - [0-9] 0 0 - -$" \
|| test_fail || test_fail
run_chronyc "ntpdata $server" || test_fail run_chronyc "ntpdata $server" || test_fail
@ -75,7 +75,7 @@ Leap status : Normal
Version : 4 Version : 4
Mode : Server Mode : Server
Stratum : 10 Stratum : 10
Poll interval : -6 \(0 seconds\) Poll interval : (-6|[0345]) \([0-9]+ seconds\)
Precision : [0-9 +-]+ \(0\.[0-9]+ seconds\) Precision : [0-9 +-]+ \(0\.[0-9]+ seconds\)
Root delay : 0\.000000 seconds Root delay : 0\.000000 seconds
Root dispersion : 0\.000000 seconds Root dispersion : 0\.000000 seconds