]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: update log checks in system tests
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 10 Dec 2019 14:54:36 +0000 (15:54 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 10 Dec 2019 14:56:48 +0000 (15:56 +0100)
Measurements are no longer accepted and clock updated when polling
itself.

This fixes commit 7a88e0a87b3b2d3efbd7726451ef71b257e27673.

test/system/test.common

index 28c4805587acf6ba1ce87b6aff2dd4f4e477ea23..cf49bef37eb4e337646d6c455f6edfab2e357824 100644 (file)
@@ -313,11 +313,8 @@ check_chronyd_message_count() {
 check_chronyd_files() {
        test_message 1 0 "checking chronyd files"
 
-       grep -q " $server .* 111 111 1111 " "$TEST_LOGDIR/measurements.log" && \
-               grep -q " $server " "$TEST_LOGDIR/statistics.log" && \
-               grep -q " $server " "$TEST_LOGDIR/tracking.log" && \
+       grep -q " $server .* 111 111 1110 " "$TEST_LOGDIR/measurements.log" && \
                [ -f "$TEST_LOGDIR/tempcomp.log" ] && [ "$(wc -l < "$TEST_LOGDIR/tempcomp.log")" -ge 2 ] && \
-               [ -f "$TEST_RUNDIR/$server.dat" ] && [ "$(wc -l < "$TEST_RUNDIR/$server.dat")" -ge 5 ] && \
                test_ok || test_bad
 }