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

auto-t: fix OWE tests, use explicit ifnames

This commit is contained in:
James Prestwood 2019-05-02 11:27:13 -07:00 committed by Denis Kenzior
parent e8844358b7
commit 7cbbca23ce
2 changed files with 16 additions and 2 deletions

View File

@ -7,11 +7,18 @@ sys.path.append('../util')
import iwd
from iwd import IWD
from iwd import NetworkType
from hostapd import hostapd_map
from hostapd import HostapdCLI
import testutil
class Test(unittest.TestCase):
def test_connection_success(self):
for intf in hostapd_map.values():
if intf.config == 'ssidOWE.conf':
hapd = HostapdCLI(intf)
break
wd = IWD()
devices = wd.list_devices(1)
@ -38,7 +45,7 @@ class Test(unittest.TestCase):
wd.wait_for_object_condition(ordered_network.network_object, condition)
testutil.test_iface_operstate()
testutil.test_ifaces_connected()
testutil.test_ifaces_connected(device.name, hapd.ifname)
device.disconnect()

View File

@ -7,11 +7,18 @@ sys.path.append('../util')
import iwd
from iwd import IWD
from iwd import NetworkType
from hostapd import hostapd_map
from hostapd import HostapdCLI
import testutil
class Test(unittest.TestCase):
def test_connection_success(self):
for intf in hostapd_map.values():
if intf.config == 'ssidGroup20.conf':
hapd = HostapdCLI(intf)
break
wd = IWD()
devices = wd.list_devices(1)
@ -38,7 +45,7 @@ class Test(unittest.TestCase):
wd.wait_for_object_condition(ordered_network.network_object, condition)
testutil.test_iface_operstate()
testutil.test_ifaces_connected()
testutil.test_ifaces_connected(device.name, hapd.ifname)
device.disconnect()