From 92ccc0b4122ddf0e097a12a6cd04173fe0367457 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 9 Sep 2016 12:18:34 +0200 Subject: [PATCH] testing: Ignore comments (lines starting with #) in pre-/eval-/posttest.dat --- testing/do-tests | 6 +++--- 1 file 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)