diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-09-24 00:11:10 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-09-24 00:11:10 +0200 |
commit | e0f415c025e1f224cfd9862b874cf8bf177fd093 (patch) | |
tree | 4dac195d9e60d55d881fe4983d7535293d585842 /test | |
parent | 2e93cb6ed86053a13630306b1135332a3ebaf160 (diff) | |
download | passt-e0f415c025e1f224cfd9862b874cf8bf177fd093.tar passt-e0f415c025e1f224cfd9862b874cf8bf177fd093.tar.gz passt-e0f415c025e1f224cfd9862b874cf8bf177fd093.tar.bz2 passt-e0f415c025e1f224cfd9862b874cf8bf177fd093.tar.lz passt-e0f415c025e1f224cfd9862b874cf8bf177fd093.tar.xz passt-e0f415c025e1f224cfd9862b874cf8bf177fd093.tar.zst passt-e0f415c025e1f224cfd9862b874cf8bf177fd093.zip |
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 <sbrivio@redhat.com>
Diffstat (limited to 'test')
-rwxr-xr-x | test/lib/perf_report | 6 |
1 files changed, 6 insertions, 0 deletions
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 |