perf test: test_intel_pt.sh: Fix return checking
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 12 Sep 2022 08:34:09 +0000 (11:34 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 4 Oct 2022 11:55:23 +0000 (08:55 -0300)
commitfd9b45e39cfaf885a8767bcb7631868155a2f4d6
tree950098cc9e4c930d1d4015f4bd7ad7c0bc57e1c1
parent5d7aac2bf87ab6b9f759c107b44bf8a0326c4c19
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 <adrian.hunter@intel.com>
Acked-by: Namhyung 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.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/shell/test_intel_pt.sh