From eec24b5cce5f9e4ff04a725306e393f987d743b8 Mon Sep 17 00:00:00 2001
From: Dennis Krupenik <dennis@krupenik.com>
Date: Tue, 8 Sep 2020 14:45:37 +0300
Subject: [PATCH] Prefer python3 to python2

Some distributions do not alias /usr/bin/python3 to /usr/bin/python
---
 tests/test_run.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/test_run.sh b/tests/test_run.sh
index 669ed751..17ef0fac 100755
--- a/tests/test_run.sh
+++ b/tests/test_run.sh
@@ -86,6 +86,9 @@ export LUA_PATH
 if $(command -v python >/dev/null 2>&1)
 then
     PYTHON=python
+elif $(command -v python3 >/dev/null 2>&1)
+then
+    PYTHON=python3
 elif $(command -v python2 >/dev/null 2>&1)
 then
     PYTHON=python2
