test: make 110-chronyc even more tolerant

This commit is contained in:
Miroslav Lichvar 2014-05-15 18:45:09 +02:00
parent fd03d823f2
commit 4cf8395470

View file

@ -15,7 +15,7 @@ check_chronyc_output "^Reference ID : 192\.168\.123\.1 \(192\.168\.123\.1\)
Stratum : 2 Stratum : 2
Ref time \(UTC\) : Fri Jan 1 00:1.:.. 2010 Ref time \(UTC\) : Fri Jan 1 00:1.:.. 2010
System time : 0\.0000..... seconds (slow|fast) of NTP time System time : 0\.0000..... seconds (slow|fast) of NTP time
Last offset : [+-]0\.0000..... seconds Last offset : [+-]0\.000...... seconds
RMS offset : 0\.000...... seconds RMS offset : 0\.000...... seconds
Frequency : (99|100)\.... ppm fast Frequency : (99|100)\.... ppm fast
Residual freq : [+-][0-9]\.... ppm Residual freq : [+-][0-9]\.... ppm
@ -31,7 +31,7 @@ MS Name/IP address Stratum Poll Reach LastRx Last sample
210 Number of sources = 1 210 Number of sources = 1
Name/IP Address NP NR Span Frequency Freq Skew Offset Std Dev Name/IP Address NP NR Span Frequency Freq Skew Offset Std Dev
============================================================================== ==============================================================================
192\.168\.123\.1 [0-9 ]+ [0-9 ]+ [0-9 ]+ [ +-]0\.... [0-9]\.... [0-9 +-]+[un]s [0-9 ]+[un]s$" \ 192\.168\.123\.1 [0-9 ]+ [0-9 ]+ [0-9 ]+ [ +-][01]\.... [0-9 ]+\.... [0-9 +-]+[un]s [0-9 ]+[un]s$" \
|| test_fail || test_fail
test_pass test_pass