From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH 06/11] test/lib: Don't try to write to perf.js when running demos Date: Sat, 24 Sep 2022 00:42:32 +0200 Message-ID: <20220923224237.437279-7-sbrivio@redhat.com> In-Reply-To: <20220923224237.437279-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3797257926431081613==" --===============3797257926431081613== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ...it doesn't actually exist, and this error now causes the demo to stop. Signed-off-by: Stefano Brivio --- test/lib/perf_report | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/lib/perf_report b/test/lib/perf_report index 46454d1..ed71ef9 100755 --- a/test/lib/perf_report +++ b/test/lib/perf_report @@ -215,6 +215,8 @@ perf_report() { # perf_th() - Table header for a set of tests perf_th() { + [ ${DEMO} -eq 1 ] && return + shift __th_buf= @@ -229,6 +231,8 @@ perf_th() { # perf_tr() - Main table row perf_tr() { + [ ${DEMO} -eq 1 ] && return + __line_no=0 shift while true; do @@ -240,6 +244,8 @@ perf_tr() { # perf_td() - Single cell with test result perf_td() { + [ ${DEMO} -eq 1 ] && return + __rewind="${1}" shift -- 2.35.1 --===============3797257926431081613==--