mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-04-24 15:49:28 -04:00
Prevent integration test timeout bc. of sudo
Integration tests run by t_client.sh use sudo to run openvpn as root. If the t_client.sh script is configured to use sudo then the user must enter the password quickly because t_client assumes a startup failure if openvpn does not start quick enough. If the user is not quick enough, then the tests fails. This change will refresh the sudo timestamp at the start of the script. Tested on MacOS X & Ubuntu Precise Signed-off-by: Jens Neuhalfen <jens@neuhalfen.name> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <280154CA-9468-429B-BCAC-DB632C0AFB32@neuhalfen.name> URL: http://article.gmane.org/gmane.network.openvpn.devel/11622 Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
parent
d54a2488a0
commit
f40f10ea96
1 changed files with 5 additions and 0 deletions
|
|
@ -69,6 +69,11 @@ else
|
|||
echo "$0: this test must run be as root, or RUN_SUDO=... " >&2
|
||||
echo " must be set correctly in 't_client.rc'. SKIP." >&2
|
||||
exit 77
|
||||
else
|
||||
# We have to use sudo. Make sure that we (hopefully) do not have
|
||||
# to ask the users password during the test. This is done to
|
||||
# prevent timing issues, e.g. when the waits for openvpn to start
|
||||
$RUN_SUDO \true
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue