mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
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:
1 parent
5d7aac2bf8
commit
fd9b45e39c
1 file changed
+3
-3
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user