From: David Gibson <david(a)gibson.dropbear.id.au> 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 <david(a)gibson.dropbear.id.au> --- 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%%#*}" -- 2.35.1