From 7e78681f0f740bd68ed5255b506a1efa08a231b1 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 24 Nov 2017 12:00:35 +0100 Subject: tests: Fix selection of python version According to documentation (and personal experience), AM_PATH_PYTHON selects the highest version of python, no matter if major version is different, which means if both python2 and 3 are available, 3 will be chosen an PYTHON will point to "/.../python" which is python3. Apparently, the macro cannot be easily used to pick highest python2 version. As {vty,ctrl}_test_runner.py require python2 and are incompatible with python3, let's instead rely on the system having a "python2" binary available, which is the case in most distros. Change-Id: Id22e157d1bee453babdfa7ed04c506390b0f17bb --- tests/ctrl_test_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 tests/ctrl_test_runner.py (limited to 'tests/ctrl_test_runner.py') diff --git a/tests/ctrl_test_runner.py b/tests/ctrl_test_runner.py old mode 100644 new mode 100755 index 2e59e13d2..ccc6758a4 --- a/tests/ctrl_test_runner.py +++ b/tests/ctrl_test_runner.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # (C) 2013 by Jacob Erlbeck # (C) 2014 by Holger Hans Peter Freyther -- cgit v1.2.3