From e0f415c025e1f224cfd9862b874cf8bf177fd093 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Sat, 24 Sep 2022 00:11:10 +0200 Subject: test/lib: Don't try to write to perf.js when running demos ...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(+) (limited to 'test/lib') 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 -- cgit v1.2.3