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
changes/38/12138/3
Neels Hofmeyr 4 years ago committed by Harald Welte
parent 425bb8ea83
commit e3033b3f48
  1. 6
      tests/Makefile.am
  2. 2
      tests/ctrl_test_runner.py
  3. 2
      tests/smpp_test_runner.py
  4. 2
      tests/vty_test_runner.py

@ -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

@ -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

@ -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:

@ -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

Loading…
Cancel
Save