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:
James Prestwood 2018-09-14 09:36:10 -07:00 committed by Denis Kenzior
parent a160989e65
commit dd51434560
3 changed files with 4 additions and 8 deletions

View File

@ -0,0 +1,2 @@
[Settings]
Autoconnect=False

View File

@ -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):

View File

@ -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):