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:
parent
2e93cb6ed8
commit
e0f415c025
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue