aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-12-05 15:10:30 +0100
committerHarald Welte <laforge@gnumonks.org>2018-12-05 19:35:11 +0000
commite3033b3f484f53cb2ddf042dd09bfc9179dd17b3 (patch)
tree5b1472f20ebc3e83dcec42eaac33f8956413fb56 /tests
parent425bb8ea835b14bc170fc2a4a0d54fbe3c99dc7e (diff)
python tests: use py shebang instead of $(PYTHON)
I'm going to make the external tests manually launchable. For that I first had an error message if $(PYTHON) was empty. But Pau says I should just use shebang instead and ignore the autoconf python stuff, since that often fails anyway. Change-Id: Ie35dd78c42577109a6a3143221a9769e47d361a5
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am6
-rwxr-xr-x[-rw-r--r--]tests/ctrl_test_runner.py2
-rwxr-xr-x[-rw-r--r--]tests/smpp_test_runner.py2
-rwxr-xr-x[-rw-r--r--]tests/vty_test_runner.py2
4 files changed, 6 insertions, 6 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index c225afab9..f6b33fc42 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -46,10 +46,10 @@ if ENABLE_EXT_TESTS
python-tests: $(BUILT_SOURCES)
osmotestvty.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v
osmotestconfig.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v
- $(PYTHON) $(srcdir)/vty_test_runner.py -w $(abs_top_builddir) -v
- $(PYTHON) $(srcdir)/ctrl_test_runner.py -w $(abs_top_builddir) -v
+ $(srcdir)/vty_test_runner.py -w $(abs_top_builddir) -v
+ $(srcdir)/ctrl_test_runner.py -w $(abs_top_builddir) -v
if BUILD_SMPP
- $(PYTHON) $(srcdir)/smpp_test_runner.py -w $(abs_top_builddir) -v
+ $(srcdir)/smpp_test_runner.py -w $(abs_top_builddir) -v
endif
rm -f $(top_builddir)/sms.db
else
diff --git a/tests/ctrl_test_runner.py b/tests/ctrl_test_runner.py
index 05d3e303d..f652a6729 100644..100755
--- 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 <jerlbeck@sysmocom.de>
# (C) 2014 by Holger Hans Peter Freyther
diff --git a/tests/smpp_test_runner.py b/tests/smpp_test_runner.py
index 7a3a342ec..f6567d9b4 100644..100755
--- a/tests/smpp_test_runner.py
+++ b/tests/smpp_test_runner.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# (C) 2014 by Holger Hans Peter Freyther
# based on vty_test_runner.py:
diff --git a/tests/vty_test_runner.py b/tests/vty_test_runner.py
index 6d8ca6f48..471ecf6c6 100644..100755
--- a/tests/vty_test_runner.py
+++ b/tests/vty_test_runner.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# (C) 2013 by Katerina Barone-Adesi <kat.obsc@gmail.com>
# (C) 2013 by Holger Hans Peter Freyther