Commit 202d0394 authored by Adrian Hunter's avatar Adrian Hunter Committed by Arnaldo Carvalho de Melo

perf test: test_intel_pt.sh: Stop using expr

As suggested by shellcheck, stop using expr.
Signed-off-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Acked-by: default avatarNamhyung 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.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 3f79fff8
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment