From e22a6631293715062be6711fdb7987302d660a3b Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 5 Nov 2015 15:10:26 +0100 Subject: [PATCH] testing: Don't log anything to the console if auth.log or daemon.log do not exist --- testing/do-tests | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/do-tests b/testing/do-tests index 46c59f778..01a4f2382 100755 --- a/testing/do-tests +++ b/testing/do-tests @@ -740,7 +740,7 @@ do for host in $IPSECHOSTS do eval HOSTLOGIN=root@\$ipv4_${host} - ssh $SSHCONF $HOSTLOGIN "grep -E 'charon|last message repeated|imcv|pt-tls-client' \ + ssh $SSHCONF $HOSTLOGIN "grep -s -E 'charon|last message repeated|imcv|pt-tls-client' \ /var/log/auth.log" >> $TESTRESULTDIR/${host}.auth.log done @@ -752,7 +752,7 @@ do for host in $IPSECHOSTS do eval HOSTLOGIN=root@\$ipv4_${host} - ssh $SSHCONF $HOSTLOGIN "grep -E 'charon|last message repeated|imcv' \ + ssh $SSHCONF $HOSTLOGIN "grep -s -E 'charon|last message repeated|imcv' \ /var/log/daemon.log" >> $TESTRESULTDIR/${host}.daemon.log done