提交 fd9b45e3 编写于 作者: A Adrian Hunter 提交者: Arnaldo Carvalho de Melo

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: NAdrian Hunter <adrian.hunter@intel.com>
Acked-by: NNamhyung Kim <namhyung@kernel.org>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20220912083412.7058-9-adrian.hunter@intel.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 5d7aac2b
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册