]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: make 110-chronyc even more tolerant
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 15 May 2014 16:45:09 +0000 (18:45 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 16 May 2014 16:51:06 +0000 (18:51 +0200)
test/simulation/110-chronyc

index 9ab0928d797f3fd87ffeebe875cb41be67512183..c534cbdac41d32a738bc5b6f8a1435058969b9c6 100755 (executable)
@@ -15,7 +15,7 @@ check_chronyc_output "^Reference ID    : 192\.168\.123\.1 \(192\.168\.123\.1\)
 Stratum         : 2
 Ref time \(UTC\)  : Fri Jan  1 00:1.:.. 2010
 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
 Frequency       : (99|100)\.... ppm fast
 Residual freq   : [+-][0-9]\.... ppm
@@ -31,7 +31,7 @@ MS Name/IP address         Stratum Poll Reach LastRx Last sample
 210 Number of sources = 1
 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_pass