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:
parent
81c50acb21
commit
5f637a2060
1 changed files with 2 additions and 0 deletions
|
@ -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%%#*}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue