]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: don't require exit message to be on last line
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 17 Aug 2018 15:38:44 +0000 (17:38 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 17 Aug 2018 15:39:50 +0000 (17:39 +0200)
This is useful with enabled debug output.

test/simulation/test.common

index 0cd0fce160aac25b5182249344341a8a49aea0f0..36523cb6d23a379e989b8369bf98adf932febf15 100644 (file)
@@ -253,7 +253,7 @@ check_chronyd_exit() {
        for i in $(seq 1 $(get_chronyd_nodes)); do
                test_message 3 0 "node $i:"
 
-               tail -n 1 tmp/log.$i | grep -q 'chronyd exiting' && \
+               grep -q 'chronyd exiting' tmp/log.$i && \
                        ! grep -q 'Adjustment.*exceeds.*exiting' tmp/log.$i && \
                        test_ok || test_bad
                [ $? -eq 0 ] || ret=1