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 <david@gibson.dropbear.id.au>
This commit is contained in:
David Gibson 2022-05-12 12:00:49 +10:00 committed by Stefano Brivio
parent 81c50acb21
commit 5f637a2060

View file

@ -89,6 +89,8 @@ test_iperf3() {
test_one_line() { test_one_line() {
__line="${1}" __line="${1}"
[ ${DEBUG} -eq 1 ] && info DEBUG: "${__line}"
# Strip comments # Strip comments
__line="${__line%%#*}" __line="${__line%%#*}"