mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +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:
parent
a2c777ba84
commit
cb4f1d2a99
@ -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):
|
||||
|
5
autotests/testHotspot/anqp_disabled.conf
Normal file
5
autotests/testHotspot/anqp_disabled.conf
Normal file
@ -0,0 +1,5 @@
|
||||
[General]
|
||||
DisableANQP=1
|
||||
|
||||
[Scan]
|
||||
DisableMacAddressRandomization=true
|
5
autotests/testHotspot/anqp_enabled.conf
Normal file
5
autotests/testHotspot/anqp_enabled.conf
Normal file
@ -0,0 +1,5 @@
|
||||
[General]
|
||||
DisableANQP=0
|
||||
|
||||
[Scan]
|
||||
DisableMacAddressRandomization=true
|
@ -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):
|
||||
|
@ -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):
|
||||
|
@ -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):
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user