aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2016-09-09 12:18:34 +0200
committerTobias Brunner <tobias@strongswan.org>2016-09-09 12:19:14 +0200
commit92ccc0b4122ddf0e097a12a6cd04173fe0367457 (patch)
treea5fc046317d77ca983db7859f5363fc5eb654632 /testing
parentd9fe0ec7122c1890836226f703a9774958876f3e (diff)
downloadstrongswan-92ccc0b4122ddf0e097a12a6cd04173fe0367457.tar.bz2
strongswan-92ccc0b4122ddf0e097a12a6cd04173fe0367457.tar.xz
testing: Ignore comments (lines starting with #) in pre-/eval-/posttest.dat
Diffstat (limited to 'testing')
-rwxr-xr-xtesting/do-tests6
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/do-tests b/testing/do-tests
index 8330f95ad..7d7046d19 100755
--- a/testing/do-tests
+++ b/testing/do-tests
@@ -426,7 +426,7 @@ do
echo -e "\nPRE-TEST\n" >> $CONSOLE_LOG 2>&1
eval `awk -F "::" '{
- if ($2 != "")
+ if ($1 !~ /^#.*/ && $2 != "")
{
printf("echo \"%s# %s\"; ", $1, $2)
printf("ssh \044SSHCONF root@\044ipv4_%s \"%s\"; ", $1, $2)
@@ -463,7 +463,7 @@ do
command=$2
pattern=$3
hit=$4
- if (command != "")
+ if (host !~ /^#.*/ && command != "")
{
if (command == "tcpdump")
{
@@ -762,7 +762,7 @@ do
echo -e "\nPOST-TEST\n" >> $CONSOLE_LOG 2>&1
eval `awk -F "::" '{
- if ($2 != "")
+ if ($1 !~ /^#.*/ && $2 != "")
{
printf("echo \"%s# %s\"; ", $1, $2)
printf("ssh \044SSHCONF root@\044ipv4_%s \"%s\"; ", $1, $2)