[PATCH 1/1] Change the interpreter directive in test scrips

Roger Zanoni roger.zanoni
Fri Feb 21 05:48:40 PST 2014


This makes scripts check the environment for the current python
interpreter in use instead of assuming that the python executable points
to a python 2 interpreter.

Signed-off-by: Roger Zanoni <roger.zanoni at openbossa.org>
---
 tests/hwsim/hostapd.py                | 2 +-
 tests/hwsim/hwsim_utils.py            | 2 +-
 tests/hwsim/radius_das.py             | 2 +-
 tests/hwsim/run-tests.py              | 2 +-
 tests/hwsim/test_ap_acs.py            | 2 +-
 tests/hwsim/test_ap_ciphers.py        | 2 +-
 tests/hwsim/test_ap_dynamic.py        | 2 +-
 tests/hwsim/test_ap_eap.py            | 2 +-
 tests/hwsim/test_ap_ft.py             | 2 +-
 tests/hwsim/test_ap_hs20.py           | 2 +-
 tests/hwsim/test_ap_ht.py             | 2 +-
 tests/hwsim/test_ap_params.py         | 2 +-
 tests/hwsim/test_ap_pmf.py            | 2 +-
 tests/hwsim/test_ap_psk.py            | 2 +-
 tests/hwsim/test_ap_qosmap.py         | 2 +-
 tests/hwsim/test_ap_roam.py           | 2 +-
 tests/hwsim/test_ap_tdls.py           | 2 +-
 tests/hwsim/test_ap_wps.py            | 2 +-
 tests/hwsim/test_connect_cmd.py       | 2 +-
 tests/hwsim/test_dfs.py               | 2 +-
 tests/hwsim/test_ext_password.py      | 2 +-
 tests/hwsim/test_gas.py               | 2 +-
 tests/hwsim/test_ibss.py              | 2 +-
 tests/hwsim/test_ieee8021x.py         | 2 +-
 tests/hwsim/test_monitor_interface.py | 2 +-
 tests/hwsim/test_nfc_p2p.py           | 2 +-
 tests/hwsim/test_nfc_wps.py           | 2 +-
 tests/hwsim/test_p2p_autogo.py        | 2 +-
 tests/hwsim/test_p2p_concurrency.py   | 2 +-
 tests/hwsim/test_p2p_device.py        | 2 +-
 tests/hwsim/test_p2p_discovery.py     | 2 +-
 tests/hwsim/test_p2p_grpform.py       | 2 +-
 tests/hwsim/test_p2p_invitation.py    | 2 +-
 tests/hwsim/test_p2p_persistent.py    | 2 +-
 tests/hwsim/test_p2p_service.py       | 2 +-
 tests/hwsim/test_p2p_wifi_display.py  | 2 +-
 tests/hwsim/test_peerkey.py           | 2 +-
 tests/hwsim/test_pmksa_cache.py       | 2 +-
 tests/hwsim/test_radio_work.py        | 2 +-
 tests/hwsim/test_radius.py            | 2 +-
 tests/hwsim/test_sae.py               | 2 +-
 tests/hwsim/test_scan.py              | 2 +-
 tests/hwsim/test_ssid.py              | 2 +-
 tests/hwsim/test_sta_dynamic.py       | 2 +-
 tests/hwsim/test_wep.py               | 2 +-
 tests/hwsim/test_wext.py              | 2 +-
 tests/hwsim/test_wnm.py               | 2 +-
 tests/hwsim/test_wpas_ap.py           | 2 +-
 tests/hwsim/test_wpas_ctrl.py         | 2 +-
 tests/hwsim/utils.py                  | 2 +-
 tests/hwsim/wlantest.py               | 2 +-
 tests/hwsim/wpasupplicant.py          | 2 +-
 52 files changed, 52 insertions(+), 52 deletions(-)

diff --git a/tests/hwsim/hostapd.py b/tests/hwsim/hostapd.py
index 17d2d56..7f7be93 100644
--- a/tests/hwsim/hostapd.py
+++ b/tests/hwsim/hostapd.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # Python class for controlling hostapd
 # Copyright (c) 2013-2014, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/hwsim_utils.py b/tests/hwsim/hwsim_utils.py
index 621143b..89d2c1d 100644
--- a/tests/hwsim/hwsim_utils.py
+++ b/tests/hwsim/hwsim_utils.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # hwsim testing utilities
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/radius_das.py b/tests/hwsim/radius_das.py
index 1dd0c5e..5f44ea6 100644
--- a/tests/hwsim/radius_das.py
+++ b/tests/hwsim/radius_das.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # RADIUS DAS extensions to pyrad
 # Copyright (c) 2014, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py
index 4ae987f..abaddcd 100755
--- a/tests/hwsim/run-tests.py
+++ b/tests/hwsim/run-tests.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # AP tests
 # Copyright (c) 2013-2014, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_ap_acs.py b/tests/hwsim/test_ap_acs.py
index cfa45ab..58bcc7d 100644
--- a/tests/hwsim/test_ap_acs.py
+++ b/tests/hwsim/test_ap_acs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # Test cases for automatic channel selection with hostapd
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_ap_ciphers.py b/tests/hwsim/test_ap_ciphers.py
index dcabe31..fedeb77 100644
--- a/tests/hwsim/test_ap_ciphers.py
+++ b/tests/hwsim/test_ap_ciphers.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # Cipher suite tests
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_ap_dynamic.py b/tests/hwsim/test_ap_dynamic.py
index 3ee6c97..c1b82ae 100644
--- a/tests/hwsim/test_ap_dynamic.py
+++ b/tests/hwsim/test_ap_dynamic.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # Test cases for dynamic BSS changes with hostapd
 # Copyright (c) 2013, Qualcomm Atheros, Inc.
diff --git a/tests/hwsim/test_ap_eap.py b/tests/hwsim/test_ap_eap.py
index 219a1dd..870f772 100644
--- a/tests/hwsim/test_ap_eap.py
+++ b/tests/hwsim/test_ap_eap.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 # -*- coding: utf-8 -*-
 #
 # WPA2-Enterprise tests
diff --git a/tests/hwsim/test_ap_ft.py b/tests/hwsim/test_ap_ft.py
index 63f97e9..44f73fb 100644
--- a/tests/hwsim/test_ap_ft.py
+++ b/tests/hwsim/test_ap_ft.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # Fast BSS Transition tests
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py
index 3983030..de50a8b 100644
--- a/tests/hwsim/test_ap_hs20.py
+++ b/tests/hwsim/test_ap_hs20.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # Hotspot 2.0 tests
 # Copyright (c) 2013-2014, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_ap_ht.py b/tests/hwsim/test_ap_ht.py
index 5071a98..bd974d6 100644
--- a/tests/hwsim/test_ap_ht.py
+++ b/tests/hwsim/test_ap_ht.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # Test cases for HT operations with hostapd
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_ap_params.py b/tests/hwsim/test_ap_params.py
index 2f77683..7846825 100644
--- a/tests/hwsim/test_ap_params.py
+++ b/tests/hwsim/test_ap_params.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # Test various AP mode parameters
 # Copyright (c) 2014, Qualcomm Atheros, Inc.
diff --git a/tests/hwsim/test_ap_pmf.py b/tests/hwsim/test_ap_pmf.py
index daf39e8..5f5ee98 100644
--- a/tests/hwsim/test_ap_pmf.py
+++ b/tests/hwsim/test_ap_pmf.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # Protected management frames tests
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_ap_psk.py b/tests/hwsim/test_ap_psk.py
index 26a3bb4..79c38de 100644
--- a/tests/hwsim/test_ap_psk.py
+++ b/tests/hwsim/test_ap_psk.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # WPA2-Personal tests
 # Copyright (c) 2014, Qualcomm Atheros, Inc.
diff --git a/tests/hwsim/test_ap_qosmap.py b/tests/hwsim/test_ap_qosmap.py
index 8843b4e..0237e39 100644
--- a/tests/hwsim/test_ap_qosmap.py
+++ b/tests/hwsim/test_ap_qosmap.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # QoS Mapping tests
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_ap_roam.py b/tests/hwsim/test_ap_roam.py
index a9d671c..0c7c90e 100644
--- a/tests/hwsim/test_ap_roam.py
+++ b/tests/hwsim/test_ap_roam.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # Roaming tests
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_ap_tdls.py b/tests/hwsim/test_ap_tdls.py
index 2163e02..8b9971a 100644
--- a/tests/hwsim/test_ap_tdls.py
+++ b/tests/hwsim/test_ap_tdls.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # TDLS tests
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py
index bc37398..3196854 100644
--- a/tests/hwsim/test_ap_wps.py
+++ b/tests/hwsim/test_ap_wps.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # WPS tests
 # Copyright (c) 2013-2014, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_connect_cmd.py b/tests/hwsim/test_connect_cmd.py
index 75833a5..52b3da7 100644
--- a/tests/hwsim/test_connect_cmd.py
+++ b/tests/hwsim/test_connect_cmd.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # cfg80211 connect command (SME in the driver/firmware)
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_dfs.py b/tests/hwsim/test_dfs.py
index a92ab83..8e45c7f 100644
--- a/tests/hwsim/test_dfs.py
+++ b/tests/hwsim/test_dfs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # Test cases for DFS
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_ext_password.py b/tests/hwsim/test_ext_password.py
index 56481e1..d847ee7 100644
--- a/tests/hwsim/test_ext_password.py
+++ b/tests/hwsim/test_ext_password.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # External password storage
 # Copyright (c) 2014, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_gas.py b/tests/hwsim/test_gas.py
index 5f901c3..22b73ed 100644
--- a/tests/hwsim/test_gas.py
+++ b/tests/hwsim/test_gas.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # GAS tests
 # Copyright (c) 2013, Qualcomm Atheros, Inc.
diff --git a/tests/hwsim/test_ibss.py b/tests/hwsim/test_ibss.py
index 3a92a67..db5131c 100644
--- a/tests/hwsim/test_ibss.py
+++ b/tests/hwsim/test_ibss.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # IBSS test cases
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_ieee8021x.py b/tests/hwsim/test_ieee8021x.py
index 6527f0c..61e5fe7 100644
--- a/tests/hwsim/test_ieee8021x.py
+++ b/tests/hwsim/test_ieee8021x.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # IEEE 802.1X tests
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_monitor_interface.py b/tests/hwsim/test_monitor_interface.py
index 2fce1a1..121313b 100644
--- a/tests/hwsim/test_monitor_interface.py
+++ b/tests/hwsim/test_monitor_interface.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # AP mode using the older monitor interface design
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_nfc_p2p.py b/tests/hwsim/test_nfc_p2p.py
index 84418f9..229c82d 100644
--- a/tests/hwsim/test_nfc_p2p.py
+++ b/tests/hwsim/test_nfc_p2p.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # P2P+NFC tests
 # Copyright (c) 2013, Qualcomm Atheros, Inc.
diff --git a/tests/hwsim/test_nfc_wps.py b/tests/hwsim/test_nfc_wps.py
index dc2c848..89041f0 100644
--- a/tests/hwsim/test_nfc_wps.py
+++ b/tests/hwsim/test_nfc_wps.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # WPS+NFC tests
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_p2p_autogo.py b/tests/hwsim/test_p2p_autogo.py
index ad4a3d9..d601105 100644
--- a/tests/hwsim/test_p2p_autogo.py
+++ b/tests/hwsim/test_p2p_autogo.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # P2P autonomous GO test cases
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_p2p_concurrency.py b/tests/hwsim/test_p2p_concurrency.py
index 29aaa26..3fccb96 100644
--- a/tests/hwsim/test_p2p_concurrency.py
+++ b/tests/hwsim/test_p2p_concurrency.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # P2P concurrency test cases
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_p2p_device.py b/tests/hwsim/test_p2p_device.py
index ce9d2c4..b01e880 100644
--- a/tests/hwsim/test_p2p_device.py
+++ b/tests/hwsim/test_p2p_device.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # cfg80211 P2P Device
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_p2p_discovery.py b/tests/hwsim/test_p2p_discovery.py
index 685a76c..4eeb30f 100644
--- a/tests/hwsim/test_p2p_discovery.py
+++ b/tests/hwsim/test_p2p_discovery.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # P2P device discovery test cases
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_p2p_grpform.py b/tests/hwsim/test_p2p_grpform.py
index c91b64d..977253c 100644
--- a/tests/hwsim/test_p2p_grpform.py
+++ b/tests/hwsim/test_p2p_grpform.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # P2P group formation test cases
 # Copyright (c) 2013-2014, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_p2p_invitation.py b/tests/hwsim/test_p2p_invitation.py
index db8441e..3d669e3 100644
--- a/tests/hwsim/test_p2p_invitation.py
+++ b/tests/hwsim/test_p2p_invitation.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # P2P invitation test cases
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_p2p_persistent.py b/tests/hwsim/test_p2p_persistent.py
index 1f0ef1b..b5c3b91 100644
--- a/tests/hwsim/test_p2p_persistent.py
+++ b/tests/hwsim/test_p2p_persistent.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # P2P persistent group test cases
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_p2p_service.py b/tests/hwsim/test_p2p_service.py
index 43ed5b2..5954a00 100644
--- a/tests/hwsim/test_p2p_service.py
+++ b/tests/hwsim/test_p2p_service.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # P2P service discovery test cases
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_p2p_wifi_display.py b/tests/hwsim/test_p2p_wifi_display.py
index a38e8aa..a752873 100644
--- a/tests/hwsim/test_p2p_wifi_display.py
+++ b/tests/hwsim/test_p2p_wifi_display.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # Wi-Fi Display test cases
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_peerkey.py b/tests/hwsim/test_peerkey.py
index f4da06a..fd64c18 100644
--- a/tests/hwsim/test_peerkey.py
+++ b/tests/hwsim/test_peerkey.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # PeerKey tests
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_pmksa_cache.py b/tests/hwsim/test_pmksa_cache.py
index cbd8d8e..1b15524 100644
--- a/tests/hwsim/test_pmksa_cache.py
+++ b/tests/hwsim/test_pmksa_cache.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # WPA2-Enterprise PMKSA caching tests
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_radio_work.py b/tests/hwsim/test_radio_work.py
index 7f4f5c7..a39272d 100644
--- a/tests/hwsim/test_radio_work.py
+++ b/tests/hwsim/test_radio_work.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # Radio work tests
 # Copyright (c) 2014, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_radius.py b/tests/hwsim/test_radius.py
index 5849986..b35cca1 100644
--- a/tests/hwsim/test_radius.py
+++ b/tests/hwsim/test_radius.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # RADIUS tests
 # Copyright (c) 2013-2014, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_sae.py b/tests/hwsim/test_sae.py
index 3461c54..5a5c703 100644
--- a/tests/hwsim/test_sae.py
+++ b/tests/hwsim/test_sae.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # Test cases for SAE
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_scan.py b/tests/hwsim/test_scan.py
index 938abda..ea7f64a 100644
--- a/tests/hwsim/test_scan.py
+++ b/tests/hwsim/test_scan.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # Scanning tests
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_ssid.py b/tests/hwsim/test_ssid.py
index 6d1f72d..7972bab 100644
--- a/tests/hwsim/test_ssid.py
+++ b/tests/hwsim/test_ssid.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 # -*- coding: utf-8 -*-
 #
 # SSID contents and encoding tests
diff --git a/tests/hwsim/test_sta_dynamic.py b/tests/hwsim/test_sta_dynamic.py
index ab9df44..5bf43da 100644
--- a/tests/hwsim/test_sta_dynamic.py
+++ b/tests/hwsim/test_sta_dynamic.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # Dynamic wpa_supplicant interface
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_wep.py b/tests/hwsim/test_wep.py
index 7b70484..8552b7a 100644
--- a/tests/hwsim/test_wep.py
+++ b/tests/hwsim/test_wep.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # WEP tests
 # Copyright (c) 2014, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_wext.py b/tests/hwsim/test_wext.py
index e456b48..779b4f9 100644
--- a/tests/hwsim/test_wext.py
+++ b/tests/hwsim/test_wext.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # Deprecated WEXT driver interface in wpa_supplicant
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_wnm.py b/tests/hwsim/test_wnm.py
index af5cacb..e711ea2 100644
--- a/tests/hwsim/test_wnm.py
+++ b/tests/hwsim/test_wnm.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # WNM tests
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/test_wpas_ap.py b/tests/hwsim/test_wpas_ap.py
index 4d78cb0..08229f7 100644
--- a/tests/hwsim/test_wpas_ap.py
+++ b/tests/hwsim/test_wpas_ap.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # wpa_supplicant AP mode tests
 # Copyright (c) 2014, Qualcomm Atheros, Inc.
diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py
index c328f73..cd18942 100644
--- a/tests/hwsim/test_wpas_ctrl.py
+++ b/tests/hwsim/test_wpas_ctrl.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # wpa_supplicant control interface
 # Copyright (c) 2014, Qualcomm Atheros, Inc.
diff --git a/tests/hwsim/utils.py b/tests/hwsim/utils.py
index 27cbc4e..d8cb595 100644
--- a/tests/hwsim/utils.py
+++ b/tests/hwsim/utils.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # Testing utilities
 # Copyright (c) 2013, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/wlantest.py b/tests/hwsim/wlantest.py
index 3056479..8d48b2d 100644
--- a/tests/hwsim/wlantest.py
+++ b/tests/hwsim/wlantest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # Python class for controlling wlantest
 # Copyright (c) 2013-2014, Jouni Malinen <j at w1.fi>
diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py
index 963b346..653cbdd 100644
--- a/tests/hwsim/wpasupplicant.py
+++ b/tests/hwsim/wpasupplicant.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 #
 # Python class for controlling wpa_supplicant
 # Copyright (c) 2013-2014, Jouni Malinen <j at w1.fi>
-- 
1.9.0




More information about the Hostap mailing list