mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-23 22:42:37 +01:00
auto-t: Fix testAP
Fixed two issues: 1. There is no longer a dbus exception when switching to AP mode when connected in station mode so that assert was removed. 2. After the device/station change the timing must have changed, causing autoconnect to take over before an explicit connect call. Added a psk provisioning file that disables autoconnect.
This commit is contained in:
parent
a160989e65
commit
dd51434560
2
autotests/testAP/TestAP1.psk
Normal file
2
autotests/testAP/TestAP1.psk
Normal file
@ -0,0 +1,2 @@
|
||||
[Settings]
|
||||
Autoconnect=False
|
@ -57,9 +57,6 @@ class Test(unittest.TestCase):
|
||||
testutil.test_ifaces_connected(list(hostapd.hostapd_map.keys())[0],
|
||||
dev.name)
|
||||
|
||||
self.assertRaises(iwd.dbus.DBusException, dev.start_ap,
|
||||
'TestAP2', 'Password2')
|
||||
|
||||
dev.disconnect()
|
||||
|
||||
condition = 'not obj.connected'
|
||||
@ -106,7 +103,7 @@ class Test(unittest.TestCase):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
pass
|
||||
IWD.copy_to_storage('TestAP1.psk')
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
|
@ -50,9 +50,6 @@ class Test(unittest.TestCase):
|
||||
testutil.test_ifaces_connected(list(hostapd.hostapd_map.keys())[0],
|
||||
dev.name)
|
||||
|
||||
self.assertRaises(iwd.dbus.DBusException, dev.start_ap,
|
||||
'TestAP2', 'Password2')
|
||||
|
||||
dev.disconnect()
|
||||
|
||||
condition = 'not obj.connected'
|
||||
@ -118,7 +115,7 @@ class Test(unittest.TestCase):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
pass
|
||||
IWD.copy_to_storage('TestAP1.psk')
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
|
Loading…
Reference in New Issue
Block a user