drm/nouveau: consume the return of large GSP message
[drm/drm-misc.git] / tools / perf / tests / shell / lib / setup_python.sh
blobc2fce1793538db8c5a5ef2d321c8b696de58f294
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
4 if [ "x$PYTHON" = "x" ]
5 then
6 python3 --version >/dev/null 2>&1 && PYTHON=python3
7 fi
8 if [ "x$PYTHON" = "x" ]
9 then
10 python --version >/dev/null 2>&1 && PYTHON=python
12 if [ "x$PYTHON" = "x" ]
13 then
14 echo Skipping test, python not detected please set environment variable PYTHON.
15 exit 2