]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: make 110-chronyc more tolerant
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 20 Mar 2014 15:17:15 +0000 (16:17 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 21 Mar 2014 12:20:24 +0000 (13:20 +0100)
test/simulation/110-chronyc

index 535a126d6f8ec5627f9d33ec61d7f5b8d66a49d5..848c24fee6347e2419cf01f03db1dbf3ff11f499 100755 (executable)
@@ -18,11 +18,11 @@ System time     : 0\.0000..... seconds (slow|fast) of NTP time
 Last offset     : -?0\.0000..... seconds
 RMS offset      : 0\.000...... seconds
 Frequency       : (99|100)\.... ppm fast
-Residual freq   : -?0.00. ppm
-Skew            : 0\.... ppm
+Residual freq   : -?[0-9]\.... ppm
+Skew            : [0-9]\.... ppm
 Root delay      : 0\.000... seconds
-Root dispersion : 0.000... seconds
-Update interval : 6.\.. seconds
+Root dispersion : 0\.000... seconds
+Update interval : [0-9]+\.. seconds
 Leap status     : Normal
 210 Number of sources = 1
 MS Name/IP address         Stratum Poll Reach LastRx Last sample
@@ -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..      0\....  [0-9 +-]+[un]s [0-9 ]+[un]s$" \
+192\.168\.123\.1              [0-9 ]+ [0-9 ]+ [0-9 ]+ [ +-]0\....      [0-9]\....  [0-9 +-]+[un]s [0-9 ]+[un]s$" \
 || test_fail
 
 test_pass