Logo
Explore Help
Sign In
dasharo/linux
0
0
Fork 0
You've already forked linux
mirror of https://github.com/Dasharo/linux.git synced 2026-03-06 15:25:10 -08:00
Code Issues Packages Projects Releases Wiki Activity
Files
f1d4fed13fa0c0f8c99cdbbc27460f1e1f46fd4e
linux/tools/perf/tests/shell/lib/setup_python.sh

17 lines
339 B
Bash
Raw Normal View History

perf test: Use common python setup library Avoid replicated logic by having a common library to set the PYTHON environment variable. Reviewed-by: Athira Jajeev <atrajeev@linux.vnet.ibm.com> Signed-off-by: Ian Rogers <irogers@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: James Clark <james.clark@arm.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20231129213428.2227448-3-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2023-11-29 13:34:27 -08:00
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
if [ "x$PYTHON" = "x" ]
then
python3 --version >/dev/null 2>&1 && PYTHON=python3
fi
if [ "x$PYTHON" = "x" ]
then
python --version >/dev/null 2>&1 && PYTHON=python
fi
if [ "x$PYTHON" = "x" ]
then
echo Skipping test, python not detected please set environment variable PYTHON.
exit 2
fi
Reference in New Issue Copy Permalink
Powered by Gitea Page: 162ms Template: 5ms
English
English
Licenses API