testing: Ignore comments (lines starting with #) in pre-/eval-/posttest.dat

This commit is contained in:
Tobias Brunner 2016-09-09 12:18:34 +02:00
parent d9fe0ec712
commit 92ccc0b412
1 changed files with 3 additions and 3 deletions

View File

@ -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)