perf test: test_intel_pt.sh: Fix return checking

The use of set -e will cause a function that returns non-zero to terminate
the script unless the result is consumed by || for example. That is OK if
there is only 1 test function, but not if there are more. Prepare for more
by using ||.

Signed-off-by: Adrian Hunter <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Jiri Olsa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
Adrian Hunter authored and Arnaldo Carvalho de Melo committed 2022-10-04 08:55:23 -03:00
1 parent 5d7aac2bf8
commit fd9b45e39c
1 file changed
+3 -3
+3 -3
View File
@@ -72,11 +72,11 @@ count_result()
return
fi
err_cnt=$((err_cnt + 1))
ret=0
}
test_system_wide_side_band
count_result $?
ret=0
test_system_wide_side_band || ret=$? ; count_result $ret
cleanup