Commit 3cf6637b009f0bf4e1e101a985f766c27f3c2c4b

Martin Mitas 2017-12-10T16:11:36

run-tests.sh: Use 'py' utility if available.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh
index e388b90..cc62111 100755
--- a/scripts/run-tests.sh
+++ b/scripts/run-tests.sh
@@ -16,7 +16,9 @@ if [ ! -x "$PROGRAM" ]; then
     exit 1
 fi
 
-if which python3 >>/dev/null 2>&1; then
+if which py >>/dev/null 2>&1; then
+    PYTHON=py
+elif which python3 >>/dev/null 2>&1; then
     PYTHON=python3
 elif which python >>/dev/null 2>&1; then
     if [ `python --version | awk '{print $2}' | cut -d. -f1` -ge 3 ]; then