1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/sysbench/python3-test.patch
2021-07-09 06:06:57 +00:00

24 lines
700 B
Diff

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