From 5f637a2060b21388314eeb1a7e6d7f349cd11142 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Thu, 12 May 2022 12:00:49 +1000 Subject: [PATCH] tests: Add some debugging output for the test scripts themselves The DEBUG option for tests/run enables debugging options to passt/pasta, however that doesn't help with debugging the test scripts themselves, which are fairly fragile. Extend the DEBUG option so it also prints information on each command in the test scripts to make it easier to work out where things are falling over. Signed-off-by: David Gibson --- test/lib/test | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/lib/test b/test/lib/test index 2854191..93c86e8 100755 --- a/test/lib/test +++ b/test/lib/test @@ -89,6 +89,8 @@ test_iperf3() { test_one_line() { __line="${1}" + [ ${DEBUG} -eq 1 ] && info DEBUG: "${__line}" + # Strip comments __line="${__line%%#*}"