test: don't require exit message to be on last line

This is useful with enabled debug output.
This commit is contained in:
Miroslav Lichvar 2018-08-17 17:38:44 +02:00
parent 74f0c0924a
commit c5bdc52a59

View 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