diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2022-09-12 11:34:05 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-10-04 08:55:23 -0300 |
commit | 202d039413818b0cf421d98b6a6068fdd2ec8d08 (patch) | |
tree | c99d7614603a95f2a2f0d726d40d0f8e2b8be10c /tools/perf | |
parent | 3f79fff8bd561f22678e7008e0910ffdbc9891ea (diff) | |
download | linux-202d039413818b0cf421d98b6a6068fdd2ec8d08.tar.gz |
perf test: test_intel_pt.sh: Stop using expr
As suggested by shellcheck, stop using expr.
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-5-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rwxr-xr-x | tools/perf/tests/shell/test_intel_pt.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/tests/shell/test_intel_pt.sh b/tools/perf/tests/shell/test_intel_pt.sh index 6e40ee7261da..2be8cb03a620 100755 --- a/tools/perf/tests/shell/test_intel_pt.sh +++ b/tools/perf/tests/shell/test_intel_pt.sh @@ -64,14 +64,14 @@ test_system_wide_side_band() count_result() { if [ $1 -eq 2 ] ; then - skip_cnt=`expr ${skip_cnt} \+ 1` + skip_cnt=$((skip_cnt + 1)) return fi if [ $1 -eq 0 ] ; then - ok_cnt=`expr ${ok_cnt} \+ 1` + ok_cnt=$((ok_cnt + 1)) return fi - err_cnt=`expr ${err_cnt} \+ 1` + err_cnt=$((err_cnt + 1)) } test_system_wide_side_band |