3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 02:19:26 +01:00

auto-t: Disable MAC rand. for tests with hidden networks

This commit is contained in:
Tim Kourt 2019-01-15 19:14:58 -08:00 committed by Denis Kenzior
parent b41729d608
commit f8fedb0ec8
7 changed files with 17 additions and 4 deletions

View File

@ -2,6 +2,7 @@
num_radios=6 num_radios=6
start_iwd=0 start_iwd=0
max_test_exec_interval_sec=160 max_test_exec_interval_sec=160
tmpfs_extra_stuff=main.conf
[HOSTAPD] [HOSTAPD]
rad0=ssidHiddenOpen.conf rad0=ssidHiddenOpen.conf

View File

@ -0,0 +1,6 @@
[Scan]
#
# Discovery of the hidden networks with randomization flag set works with real
# hardware, but fails when used in simulated environment with mac80211_hwsim.
# Disable MAC randomization for the tests with hidden networks.
disable_mac_address_randomization=true

View File

@ -71,7 +71,7 @@ class TestConnectAutoconnect(unittest.TestCase):
def validate(self, ssid, autoconnect, throws = None, use_agent = False, def validate(self, ssid, autoconnect, throws = None, use_agent = False,
wait_periodic_scan = False): wait_periodic_scan = False):
wd = IWD(True) wd = IWD(True, '/tmp')
try: try:
self.validate_connection(wd, ssid, autoconnect, throws, use_agent, self.validate_connection(wd, ssid, autoconnect, throws, use_agent,

View File

@ -2,7 +2,7 @@
num_radios=5 num_radios=5
start_iwd=0 start_iwd=0
max_test_exec_interval_sec=60 max_test_exec_interval_sec=60
tmpfs_extra_stuff=../misc/certs:../misc/secrets tmpfs_extra_stuff=../misc/certs:../misc/secrets:main.conf
[HOSTAPD] [HOSTAPD]
rad0=ssid_hidden.conf rad0=ssid_hidden.conf

View File

@ -0,0 +1,6 @@
[Scan]
#
# Discovery of the hidden networks with randomization flag set works with real
# hardware, but fails when used in simulated environment with mac80211_hwsim.
# Disable MAC randomization for the tests with hidden networks.
disable_mac_address_randomization=true

View File

@ -52,7 +52,7 @@ class Test(unittest.TestCase):
self.set_network(network.name) self.set_network(network.name)
def test_scan(self): def test_scan(self):
wd = IWD(True) wd = IWD(True, '/tmp')
try: try:
self.validate_scan(wd) self.validate_scan(wd)

View File

@ -53,7 +53,7 @@ class Test(unittest.TestCase):
self.set_network(network.name) self.set_network(network.name)
def test_scan(self): def test_scan(self):
wd = IWD(True) wd = IWD(True, '/tmp')
try: try:
self.validate_scan(wd) self.validate_scan(wd)