[PATCH 1/1] Change the interpreter directive in test scrips
Roger Zanoni
roger.zanoni
Thu Feb 20 13:08:45 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..30a12d6 100644
--- a/tests/hwsim/hostapd.py
+++ b/tests/hwsim/hostapd.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# 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..67e8976 100644
--- a/tests/hwsim/hwsim_utils.py
+++ b/tests/hwsim/hwsim_utils.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# 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..e820681 100644
--- a/tests/hwsim/radius_das.py
+++ b/tests/hwsim/radius_das.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# 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..14c5ee2 100755
--- a/tests/hwsim/run-tests.py
+++ b/tests/hwsim/run-tests.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# 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..e4058b0 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 python
#
# 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..f40bee4 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 python
#
# 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..be500c8 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 python
#
# 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..b7f0116 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 python
# -*- coding: utf-8 -*-
#
# WPA2-Enterprise tests
diff --git a/tests/hwsim/test_ap_ft.py b/tests/hwsim/test_ap_ft.py
index 63f97e9..ac6c9c3 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 python
#
# 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..c8950bc 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 python
#
# 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..f1e7b63 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 python
#
# 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..b3754c8 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 python
#
# 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..4d326e2 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 python
#
# 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..5b886a4 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 python
#
# 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..91b5897 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 python
#
# 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..23ca22a 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 python
#
# 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..1cfc6ae 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 python
#
# 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..1125962 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 python
#
# 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..6a4cd71 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 python
#
# 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..f8a2e43 100644
--- a/tests/hwsim/test_dfs.py
+++ b/tests/hwsim/test_dfs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# 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..f982e9c 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 python
#
# 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..f4efc32 100644
--- a/tests/hwsim/test_gas.py
+++ b/tests/hwsim/test_gas.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# GAS tests
# Copyright (c) 2013, Qualcomm Atheros, Inc.
diff --git a/tests/hwsim/test_ibss.py b/tests/hwsim/test_ibss.py
index 3a92a67..404bb5d 100644
--- a/tests/hwsim/test_ibss.py
+++ b/tests/hwsim/test_ibss.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# 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..0d1d2b9 100644
--- a/tests/hwsim/test_ieee8021x.py
+++ b/tests/hwsim/test_ieee8021x.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# 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..b67935d 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 python
#
# 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..f2511c1 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 python
#
# 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..b8d4248 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 python
#
# 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..7c87053 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 python
#
# 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..4f67596 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 python
#
# 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..83eb20e 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 python
#
# 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..621fbb1 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 python
#
# 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..0724e68 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 python
#
# 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..1c08da1 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 python
#
# 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..e85b670 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 python
#
# 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..06f4817 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 python
#
# 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..3df06bd 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 python
#
# 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..5525af6 100644
--- a/tests/hwsim/test_peerkey.py
+++ b/tests/hwsim/test_peerkey.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# 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..eb01dd3 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 python
#
# 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..285b6cd 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 python
#
# 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..2e4cfcd 100644
--- a/tests/hwsim/test_radius.py
+++ b/tests/hwsim/test_radius.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# 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..1f91eef 100644
--- a/tests/hwsim/test_sae.py
+++ b/tests/hwsim/test_sae.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# 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..f35e9ca 100644
--- a/tests/hwsim/test_scan.py
+++ b/tests/hwsim/test_scan.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# 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..faf23c4 100644
--- a/tests/hwsim/test_ssid.py
+++ b/tests/hwsim/test_ssid.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
# -*- 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..6df0ebc 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 python
#
# 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..238507f 100644
--- a/tests/hwsim/test_wep.py
+++ b/tests/hwsim/test_wep.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# 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..202d67d 100644
--- a/tests/hwsim/test_wext.py
+++ b/tests/hwsim/test_wext.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# 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..d3f0cf4 100644
--- a/tests/hwsim/test_wnm.py
+++ b/tests/hwsim/test_wnm.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# 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..bfd803d 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 python
#
# 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..05c2bb3 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 python
#
# wpa_supplicant control interface
# Copyright (c) 2014, Qualcomm Atheros, Inc.
diff --git a/tests/hwsim/utils.py b/tests/hwsim/utils.py
index 27cbc4e..ac203ab 100644
--- a/tests/hwsim/utils.py
+++ b/tests/hwsim/utils.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# 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..7c48de0 100644
--- a/tests/hwsim/wlantest.py
+++ b/tests/hwsim/wlantest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# 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..ddd8e06 100644
--- a/tests/hwsim/wpasupplicant.py
+++ b/tests/hwsim/wpasupplicant.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# 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