]> git.ipfire.org Git - thirdparty/openvpn.git/commit
t_client.sh: Improve detection if the OpenVPN process did start during tests
authorDavid Sommerseth <davids@openvpn.net>
Sat, 17 Sep 2016 11:18:05 +0000 (14:18 +0300)
committerGert Doering <gert@greenie.muc.de>
Sat, 17 Sep 2016 11:28:03 +0000 (13:28 +0200)
commit3712322ee1219e55640f2f4e5f822799edacd7cc
tree1162a31cb637553ff40181fddc05b4e007fee522
parent6b25b99fe4b8bdf5cdba4a0fb247df40277d0525
t_client.sh: Improve detection if the OpenVPN process did start during tests

This will check the OpenVPN log file if the process initialized
successfully.

It will check the log file for 30 seconds before aborting the test run.
This also has the advantage of starting the testing quicker if the
initialization goes faster than 10 seconds (which was the old sleep time).

The umask is also set to a more permissive mode to ensure the test
script is capable of reading the OpenVPN PID file, as that will be
created by root.

Signed-off-by: David Sommerseth <davids@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1474111085-10678-1-git-send-email-davids@openvpn.net>
URL: http://www.mail-archive.com/search?l=mid&q=1474111085-10678-1-git-send-email-davids@openvpn.net
Signed-off-by: Gert Doering <gert@greenie.muc.de>
tests/t_client.sh.in