aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-05-12 12:00:49 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-05-19 15:24:15 +0200
commit5f637a2060b21388314eeb1a7e6d7f349cd11142 (patch)
treec098126033a801ab13e21b6e1c12982ff308a293
parent81c50acb21240b231dd9cb0d2f07c0951847c488 (diff)
downloadpasst-5f637a2060b21388314eeb1a7e6d7f349cd11142.tar
passt-5f637a2060b21388314eeb1a7e6d7f349cd11142.tar.gz
passt-5f637a2060b21388314eeb1a7e6d7f349cd11142.tar.bz2
passt-5f637a2060b21388314eeb1a7e6d7f349cd11142.tar.lz
passt-5f637a2060b21388314eeb1a7e6d7f349cd11142.tar.xz
passt-5f637a2060b21388314eeb1a7e6d7f349cd11142.tar.zst
passt-5f637a2060b21388314eeb1a7e6d7f349cd11142.zip
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>
-rwxr-xr-xtest/lib/test2
1 files changed, 2 insertions, 0 deletions
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%%#*}"