1
0
mirror of https://passt.top/passt synced 2024-09-28 10:05:47 +00:00

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>
This commit is contained in:
Stefano Brivio 2022-09-24 00:11:10 +02:00
parent 2e93cb6ed8
commit e0f415c025

View File

@ -215,6 +215,8 @@ perf_report() {
# perf_th() - Table header for a set of tests # perf_th() - Table header for a set of tests
perf_th() { perf_th() {
[ ${DEMO} -eq 1 ] && return
shift shift
__th_buf= __th_buf=
@ -229,6 +231,8 @@ perf_th() {
# perf_tr() - Main table row # perf_tr() - Main table row
perf_tr() { perf_tr() {
[ ${DEMO} -eq 1 ] && return
__line_no=0 __line_no=0
shift shift
while true; do while true; do
@ -240,6 +244,8 @@ perf_tr() {
# perf_td() - Single cell with test result # perf_td() - Single cell with test result
perf_td() { perf_td() {
[ ${DEMO} -eq 1 ] && return
__rewind="${1}" __rewind="${1}"
shift shift