eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit bda956f2b2bd5cd156ecf1de352bb3648edeeca9
parent b4485f3e1bd1b20b36846182005d121203e7d33c
Author: Tim Kourt <tim.a.kourt@linux.intel.com>
Date:   Fri, 15 Mar 2019 15:02:47 -0700

auto-t: SAE - remove iwd instance on failure

Diffstat:
Mautotests/testSAE/autoconnect_test.py | 11++++++++---
Mautotests/testSAE/clogging_test.py | 12++++++++----
Mautotests/testSAE/connection_test.py | 12++++++++----
Mautotests/testSAE/failure_test.py | 11++++++++---
Mautotests/testSAE/group_20_connection_test.py | 12++++++++----
5 files changed, 40 insertions(+), 18 deletions(-)

diff --git a/autotests/testSAE/autoconnect_test.py b/autotests/testSAE/autoconnect_test.py @@ -11,8 +11,7 @@ from iwd import NetworkType class Test(unittest.TestCase): - def test_connection_success(self): - wd = IWD(True) + def validate_connection(self, wd): devices = wd.list_devices(4) self.assertIsNotNone(devices) @@ -46,7 +45,13 @@ class Test(unittest.TestCase): condition = 'not obj.connected' wd.wait_for_object_condition(ordered_network.network_object, condition) - del wd + def test_connection_success(self): + wd = IWD(True) + + try: + self.validate_connection(wd) + finally: + del wd @classmethod def setUpClass(cls): diff --git a/autotests/testSAE/clogging_test.py b/autotests/testSAE/clogging_test.py @@ -11,11 +11,9 @@ from iwd import NetworkType class Test(unittest.TestCase): - def test_connection_success(self): + def validate_connection(self, wd): networks = [] - wd = IWD(True) - psk_agent = PSKAgent(["secret123"] * 4) wd.register_psk_agent(psk_agent) @@ -61,7 +59,13 @@ class Test(unittest.TestCase): wd.unregister_psk_agent(psk_agent) - del wd + def test_connection_success(self): + wd = IWD(True) + + try: + self.validate_connection(wd) + finally: + del wd @classmethod def setUpClass(cls): diff --git a/autotests/testSAE/connection_test.py b/autotests/testSAE/connection_test.py @@ -13,15 +13,13 @@ import testutil class Test(unittest.TestCase): - def test_connection_success(self): + def validate_connection(self, wd): hostapd_if = None for hostapd in list(hostapd_map.values()): if hostapd.config == 'ssidSAE.conf': hostapd_if = hostapd.name - wd = IWD(True) - psk_agent = PSKAgent("secret123") wd.register_psk_agent(psk_agent) @@ -67,7 +65,13 @@ class Test(unittest.TestCase): wd.unregister_psk_agent(psk_agent) - del wd + def test_connection_success(self): + wd = IWD(True) + + try: + self.validate_connection(wd) + finally: + del wd @classmethod def setUpClass(cls): diff --git a/autotests/testSAE/failure_test.py b/autotests/testSAE/failure_test.py @@ -11,8 +11,7 @@ from iwd import NetworkType class Test(unittest.TestCase): - def test_connection_success(self): - wd = IWD(True) + def validate_connection(self, wd): psk_agent = PSKAgent("InvalidSecret") wd.register_psk_agent(psk_agent) @@ -41,7 +40,13 @@ class Test(unittest.TestCase): wd.unregister_psk_agent(psk_agent) - del wd + def test_connection_success(self): + wd = IWD(True) + + try: + self.validate_connection(wd) + finally: + del wd @classmethod def setUpClass(cls): diff --git a/autotests/testSAE/group_20_connection_test.py b/autotests/testSAE/group_20_connection_test.py @@ -13,15 +13,13 @@ import testutil class Test(unittest.TestCase): - def test_connection_success(self): + def validate_connection(self, wd): hostapd_if = None for hostapd in list(hostapd_map.values()): if hostapd.config == 'ssidSAE-20.conf': hostapd_if = hostapd.name - wd = IWD(True) - psk_agent = PSKAgent("secret123") wd.register_psk_agent(psk_agent) @@ -67,7 +65,13 @@ class Test(unittest.TestCase): wd.unregister_psk_agent(psk_agent) - del wd + def test_connection_success(self): + wd = IWD(True) + + try: + self.validate_connection(wd) + finally: + del wd @classmethod def setUpClass(cls):