From c5bdc52a590fc21b80ae0c0df1eef8964952914d Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Fri, 17 Aug 2018 17:38:44 +0200 Subject: [PATCH] test: don't require exit message to be on last line This is useful with enabled debug output. --- test/simulation/test.common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/simulation/test.common b/test/simulation/test.common index 0cd0fce..36523cb 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