]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: fix source selection check
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 2 Apr 2015 08:28:23 +0000 (10:28 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 2 Apr 2015 14:43:25 +0000 (16:43 +0200)
The chronyd log message changed from "no reachable sources" to "no
selectable sources" in 8f062454.

test/simulation/117-fallbackdrift
test/simulation/test.common

index f9a4c68cb0c022fbde51c4192bdbf52fa3935347..a4f3d0f55d117b2ec4d3f0ea3322793212dbac32 100755 (executable)
@@ -18,7 +18,6 @@ freq_rms_limit=5e-4
 
 run_test || test_fail
 check_chronyd_exit || test_fail
-check_source_selection || test_fail
 check_sync || test_fail
 
 test_pass
index 9dade00250b2c87bdab98817eea1e45a5aaeac70..a03ae2b02aabbc7fedfd9b685a31537f2bf6c5da 100644 (file)
@@ -262,7 +262,7 @@ check_source_selection() {
        for i in $(seq $[$servers * $server_strata + 1] $(get_chronyd_nodes)); do
                test_message 3 0 "node $i:"
 
-               ! grep -q 'no majority\|no reachable sources' tmp/log.$i && \
+               ! grep -q 'no majority\|no selectable sources' tmp/log.$i && \
                        grep -q 'Selected source' tmp/log.$i && \
                        test_ok || test_bad
                [ $? -eq 0 ] || ret=1