From e3033b3f484f53cb2ddf042dd09bfc9179dd17b3 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Wed, 5 Dec 2018 15:10:30 +0100 Subject: [PATCH] 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 --- tests/Makefile.am | 6 +++--- tests/ctrl_test_runner.py | 2 +- tests/smpp_test_runner.py | 2 +- tests/vty_test_runner.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) mode change 100644 => 100755 tests/ctrl_test_runner.py mode change 100644 => 100755 tests/smpp_test_runner.py mode change 100644 => 100755 tests/vty_test_runner.py 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 old mode 100644 new mode 100755 index 05d3e303d..f652a6729 --- 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 diff --git a/tests/smpp_test_runner.py b/tests/smpp_test_runner.py old mode 100644 new mode 100755 index 7a3a342ec..f6567d9b4 --- 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 old mode 100644 new mode 100755 index 6d8ca6f48..471ecf6c6 --- 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 # (C) 2013 by Holger Hans Peter Freyther