From: Miroslav Lichvar Date: Fri, 17 Aug 2018 15:38:44 +0000 (+0200) Subject: test: don't require exit message to be on last line X-Git-Tag: 3.4-pre1~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5bdc52a590fc21b80ae0c0df1eef8964952914d;p=thirdparty%2Fchrony.git test: don't require exit message to be on last line This is useful with enabled debug output. --- diff --git a/test/simulation/test.common b/test/simulation/test.common index 0cd0fce1..36523cb6 100644 --- a/test/simulation/test.common +++ b/test/simulation/test.common @@ -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