mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-02-19 18:40: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:
parent
a2c777ba84
commit
cb4f1d2a99
@ -5,8 +5,8 @@ import sys
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
sys.path.append('../util')
|
sys.path.append('../util')
|
||||||
import iwd
|
|
||||||
from iwd import IWD
|
from iwd import IWD
|
||||||
|
from iwd import IWD_CONFIG_DIR
|
||||||
from iwd import PSKAgent
|
from iwd import PSKAgent
|
||||||
from iwd import NetworkType
|
from iwd import NetworkType
|
||||||
from hostapd import HostapdCLI
|
from hostapd import HostapdCLI
|
||||||
@ -87,8 +87,7 @@ class Test(unittest.TestCase):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
IWD.copy_to_hotspot('example.conf')
|
IWD.copy_to_hotspot('example.conf')
|
||||||
conf = '[General]\nDisableANQP=0\n'
|
IWD.copy_to_storage('anqp_enabled.conf', storage_dir=IWD_CONFIG_DIR, name='main.conf')
|
||||||
os.system('echo "%s" > /tmp/main.conf' % conf)
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def tearDownClass(cls):
|
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
|
import os
|
||||||
|
|
||||||
sys.path.append('../util')
|
sys.path.append('../util')
|
||||||
import iwd
|
|
||||||
from iwd import IWD
|
from iwd import IWD
|
||||||
|
from iwd import IWD_CONFIG_DIR
|
||||||
from iwd import NetworkType
|
from iwd import NetworkType
|
||||||
from hostapd import HostapdCLI
|
from hostapd import HostapdCLI
|
||||||
import testutil
|
import testutil
|
||||||
@ -109,8 +109,7 @@ class Test(unittest.TestCase):
|
|||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
IWD.copy_to_hotspot('autoconnect.conf')
|
IWD.copy_to_hotspot('autoconnect.conf')
|
||||||
IWD.copy_to_storage('ssidWPA2-1.psk')
|
IWD.copy_to_storage('ssidWPA2-1.psk')
|
||||||
conf = '[General]\nDisableANQP=0\n'
|
IWD.copy_to_storage('anqp_enabled.conf', storage_dir=IWD_CONFIG_DIR, name='main.conf')
|
||||||
os.system('echo "%s" > /tmp/main.conf' % conf)
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def tearDownClass(cls):
|
def tearDownClass(cls):
|
||||||
|
@ -5,8 +5,8 @@ import sys
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
sys.path.append('../util')
|
sys.path.append('../util')
|
||||||
import iwd
|
|
||||||
from iwd import IWD
|
from iwd import IWD
|
||||||
|
from iwd import IWD_CONFIG_DIR
|
||||||
from iwd import PSKAgent
|
from iwd import PSKAgent
|
||||||
from iwd import NetworkType
|
from iwd import NetworkType
|
||||||
from hostapd import HostapdCLI
|
from hostapd import HostapdCLI
|
||||||
@ -50,8 +50,7 @@ class Test(unittest.TestCase):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
IWD.copy_to_hotspot('hessid.conf')
|
IWD.copy_to_hotspot('hessid.conf')
|
||||||
conf = '[General]\nDisableANQP=1\n'
|
IWD.copy_to_storage('anqp_disabled.conf', storage_dir=IWD_CONFIG_DIR, name='main.conf')
|
||||||
os.system('echo "%s" > /tmp/main.conf' % conf)
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def tearDownClass(cls):
|
def tearDownClass(cls):
|
||||||
|
@ -5,8 +5,8 @@ import sys
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
sys.path.append('../util')
|
sys.path.append('../util')
|
||||||
import iwd
|
|
||||||
from iwd import IWD
|
from iwd import IWD
|
||||||
|
from iwd import IWD_CONFIG_DIR
|
||||||
from iwd import PSKAgent
|
from iwd import PSKAgent
|
||||||
from iwd import NetworkType
|
from iwd import NetworkType
|
||||||
from hostapd import HostapdCLI
|
from hostapd import HostapdCLI
|
||||||
@ -50,8 +50,7 @@ class Test(unittest.TestCase):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
IWD.copy_to_hotspot('example.conf')
|
IWD.copy_to_hotspot('example.conf')
|
||||||
conf = '[General]\nDisableANQP=0\n'
|
IWD.copy_to_storage('anqp_enabled.conf', storage_dir=IWD_CONFIG_DIR, name='main.conf')
|
||||||
os.system('echo "%s" > /tmp/main.conf' % conf)
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def tearDownClass(cls):
|
def tearDownClass(cls):
|
||||||
|
@ -5,8 +5,8 @@ import sys
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
sys.path.append('../util')
|
sys.path.append('../util')
|
||||||
import iwd
|
|
||||||
from iwd import IWD
|
from iwd import IWD
|
||||||
|
from iwd import IWD_CONFIG_DIR
|
||||||
from iwd import PSKAgent
|
from iwd import PSKAgent
|
||||||
from iwd import NetworkType
|
from iwd import NetworkType
|
||||||
from hostapd import HostapdCLI
|
from hostapd import HostapdCLI
|
||||||
@ -50,8 +50,7 @@ class Test(unittest.TestCase):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
IWD.copy_to_hotspot('roaming.conf')
|
IWD.copy_to_hotspot('roaming.conf')
|
||||||
conf = '[General]\nDisableANQP=1\n'
|
IWD.copy_to_storage('anqp_disabled.conf', storage_dir=IWD_CONFIG_DIR, name='main.conf')
|
||||||
os.system('echo "%s" > /tmp/main.conf' % conf)
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def tearDownClass(cls):
|
def tearDownClass(cls):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user