From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH 03/12] tests: Add some debugging output for the test scripts themselves Date: Tue, 17 May 2022 14:36:05 +0200 Message-ID: <20220517123614.1892316-4-sbrivio@redhat.com> In-Reply-To: <20220517123614.1892316-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8182693025742867356==" --===============8182693025742867356== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit From: David Gibson 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%%#*}" -- 2.35.1 --===============8182693025742867356==--