From: Gert Doering Date: Thu, 16 Aug 2012 18:31:22 +0000 (+0200) Subject: Put actual OpenVPN command line on top of corresponding log file. X-Git-Tag: v2.3_beta1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc43956c649a1557a814d52ab422d44939b2383e;p=thirdparty%2Fopenvpn.git Put actual OpenVPN command line on top of corresponding log file. This is useful if a test fails, and the tester wants to run the very same OpenVPN call with the very same arguments interactively to pinpoint and fix the problem. Signed-off-by: Gert Doering Acked-by: David Sommerseth Message-Id: 1345141883-9889-2-git-send-email-gert@greenie.muc.de URL: http://article.gmane.org/gmane.network.openvpn.devel/6984 Signed-off-by: David Sommerseth --- diff --git a/tests/t_client.sh.in b/tests/t_client.sh.in index 8c66033fd..189eeccee 100755 --- a/tests/t_client.sh.in +++ b/tests/t_client.sh.in @@ -234,7 +234,8 @@ do fi echo " run openvpn $openvpn_conf" - $RUN_SUDO "${top_builddir}/src/openvpn/openvpn" $openvpn_conf >$LOGDIR/$SUF:openvpn.log & + echo "# src/openvpn/openvpn $openvpn_conf" >$LOGDIR/$SUF:openvpn.log + $RUN_SUDO "${top_builddir}/src/openvpn/openvpn" $openvpn_conf >>$LOGDIR/$SUF:openvpn.log & opid=$! # make sure openvpn client is terminated in case shell exits