remove pluto logging
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 9 Jul 2012 22:23:14 +0000 (00:23 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 11 Jul 2012 15:09:05 +0000 (17:09 +0200)
testing/do-tests.in

index 29728d2..82e0270 100755 (executable)
@@ -631,11 +631,8 @@ do
        for host in $IPSECHOSTS
        do
            eval HOSTLOGIN=root@\$ipv4_${host}
-           ssh $SSHCONF $HOSTLOGIN grep pluto /var/log/auth.log \
-               > $TESTRESULTDIR/${host}.auth.log
-           echo >> $TESTRESULTDIR/${host}.auth.log
-           ssh $SSHCONF $HOSTLOGIN grep charon /var/log/auth.log \
-               >> $TESTRESULTDIR/${host}.auth.log
+           ssh $SSHCONF $HOSTLOGIN "grep -E 'charon|last message repeated' \
+               /var/log/auth.log" >> $TESTRESULTDIR/${host}.auth.log
        done
 
 
@@ -646,11 +643,8 @@ do
        for host in $IPSECHOSTS
        do
            eval HOSTLOGIN=root@\$ipv4_${host}
-           ssh $SSHCONF $HOSTLOGIN grep pluto /var/log/daemon.log \
-               > $TESTRESULTDIR/${host}.daemon.log
-           echo >> $TESTRESULTDIR/${host}.daemon.log
-           ssh $SSHCONF $HOSTLOGIN grep charon /var/log/daemon.log \
-               >> $TESTRESULTDIR/${host}.daemon.log
+           ssh $SSHCONF $HOSTLOGIN "grep -E 'charon|last message repeated' \
+               /var/log/daemon.log" >> $TESTRESULTDIR/${host}.daemon.log
        done