3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

auto-t: turn off scan address randomization in testHotspot

This (hopefully) will make this test pass better on slower machines.
In addition the mechanism of copying over separate main.conf files
was changed (rather than echo'ing the option into /tmp/main.conf)
This commit is contained in:
James Prestwood 2021-08-13 15:45:53 -07:00 committed by Denis Kenzior
parent a2c777ba84
commit cb4f1d2a99
7 changed files with 20 additions and 15 deletions

View File

@ -5,8 +5,8 @@ import sys
import os
sys.path.append('../util')
import iwd
from iwd import IWD
from iwd import IWD_CONFIG_DIR
from iwd import PSKAgent
from iwd import NetworkType
from hostapd import HostapdCLI
@ -87,8 +87,7 @@ class Test(unittest.TestCase):
@classmethod
def setUpClass(cls):
IWD.copy_to_hotspot('example.conf')
conf = '[General]\nDisableANQP=0\n'
os.system('echo "%s" > /tmp/main.conf' % conf)
IWD.copy_to_storage('anqp_enabled.conf', storage_dir=IWD_CONFIG_DIR, name='main.conf')
@classmethod
def tearDownClass(cls):

View File

@ -0,0 +1,5 @@
[General]
DisableANQP=1
[Scan]
DisableMacAddressRandomization=true

View File

@ -0,0 +1,5 @@
[General]
DisableANQP=0
[Scan]
DisableMacAddressRandomization=true

View File

@ -5,8 +5,8 @@ import sys
import os
sys.path.append('../util')
import iwd
from iwd import IWD
from iwd import IWD_CONFIG_DIR
from iwd import NetworkType
from hostapd import HostapdCLI
import testutil
@ -109,8 +109,7 @@ class Test(unittest.TestCase):
def setUpClass(cls):
IWD.copy_to_hotspot('autoconnect.conf')
IWD.copy_to_storage('ssidWPA2-1.psk')
conf = '[General]\nDisableANQP=0\n'
os.system('echo "%s" > /tmp/main.conf' % conf)
IWD.copy_to_storage('anqp_enabled.conf', storage_dir=IWD_CONFIG_DIR, name='main.conf')
@classmethod
def tearDownClass(cls):

View File

@ -5,8 +5,8 @@ import sys
import os
sys.path.append('../util')
import iwd
from iwd import IWD
from iwd import IWD_CONFIG_DIR
from iwd import PSKAgent
from iwd import NetworkType
from hostapd import HostapdCLI
@ -50,8 +50,7 @@ class Test(unittest.TestCase):
@classmethod
def setUpClass(cls):
IWD.copy_to_hotspot('hessid.conf')
conf = '[General]\nDisableANQP=1\n'
os.system('echo "%s" > /tmp/main.conf' % conf)
IWD.copy_to_storage('anqp_disabled.conf', storage_dir=IWD_CONFIG_DIR, name='main.conf')
@classmethod
def tearDownClass(cls):

View File

@ -5,8 +5,8 @@ import sys
import os
sys.path.append('../util')
import iwd
from iwd import IWD
from iwd import IWD_CONFIG_DIR
from iwd import PSKAgent
from iwd import NetworkType
from hostapd import HostapdCLI
@ -50,8 +50,7 @@ class Test(unittest.TestCase):
@classmethod
def setUpClass(cls):
IWD.copy_to_hotspot('example.conf')
conf = '[General]\nDisableANQP=0\n'
os.system('echo "%s" > /tmp/main.conf' % conf)
IWD.copy_to_storage('anqp_enabled.conf', storage_dir=IWD_CONFIG_DIR, name='main.conf')
@classmethod
def tearDownClass(cls):

View File

@ -5,8 +5,8 @@ import sys
import os
sys.path.append('../util')
import iwd
from iwd import IWD
from iwd import IWD_CONFIG_DIR
from iwd import PSKAgent
from iwd import NetworkType
from hostapd import HostapdCLI
@ -50,8 +50,7 @@ class Test(unittest.TestCase):
@classmethod
def setUpClass(cls):
IWD.copy_to_hotspot('roaming.conf')
conf = '[General]\nDisableANQP=1\n'
os.system('echo "%s" > /tmp/main.conf' % conf)
IWD.copy_to_storage('anqp_disabled.conf', storage_dir=IWD_CONFIG_DIR, name='main.conf')
@classmethod
def tearDownClass(cls):