-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: Ie63f302402f469c3aa48ac146ca6b8c029f0d250 Signed-off-by: Samuli Seppänen <[email protected]> Acked-by: Frank Lichtenheld <[email protected]> Message-Id: <[email protected]> URL: https://www.mail-archive.com/[email protected]/msg31019.html Signed-off-by: Gert Doering <[email protected]>
- Loading branch information
Showing
4 changed files
with
163 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
# | ||
# Determine the OpenVPN PID from its pid file. This works reliably even when | ||
# the OpenVPN process is backgrounded for parallel tests. | ||
MY_PPID=`cat $pid` | ||
|
||
# Add this client's VPN IP and PID to a file. This enables | ||
# t_server_null_client.sh to kill this OpenVPN client after fping tests have | ||
# finished. | ||
echo "$ifconfig_local,$MY_PPID" >> ./$test_name.lwip | ||
|
||
# Wait long enough to allow fping tests to finish. Also ensure that this | ||
# OpenVPN client is killed even if t_server_null_client.sh failed to do it. | ||
(sleep 15 | ||
echo "ERROR: t_server_null_client.sh failed to kill OpenVPN client with PID $MY_PPID in test $test_name. Killing it in lwip_client_up.sh." | ||
kill -15 $MY_PPID | ||
) & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters