summaryrefslogtreecommitdiffstats
path: root/tools/perf/tests/shell/script.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/tests/shell/script.sh')
-rwxr-xr-xtools/perf/tests/shell/script.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/perf/tests/shell/script.sh b/tools/perf/tests/shell/script.sh
index 2973adab44..fa4d71e2e7 100755
--- a/tools/perf/tests/shell/script.sh
+++ b/tools/perf/tests/shell/script.sh
@@ -36,8 +36,7 @@ test_db()
echo "DB test"
# Check if python script is supported
- libpython=$(perf version --build-options | grep python | grep -cv OFF)
- if [ "${libpython}" != "1" ] ; then
+ if perf version --build-options | grep python | grep -q OFF ; then
echo "SKIP: python scripting is not supported"
err=2
return