17 lines · bash
1#!/bin/sh2# SPDX-License-Identifier: GPL-2.03 4if [ "x$PYTHON" = "x" ]5then6 python3 --version >/dev/null 2>&1 && PYTHON=python37fi8if [ "x$PYTHON" = "x" ]9then10 python --version >/dev/null 2>&1 && PYTHON=python11fi12if [ "x$PYTHON" = "x" ]13then14 echo Skipping test, python not detected please set environment variable PYTHON.15 exit 216fi17