eiwd

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

commit bb27cea54ca857f5593fec9b50a93c1616e4de08
parent e5a66bf51fd4c6ca328db6c239b327b82cefcfae
Author: James Prestwood <prestwoj@gmail.com>
Date:   Thu, 25 Feb 2021 14:00:54 -0800

auto-t: release radio/hostapd instances from cls

The cls object is part of the unittest framework and its lifespan
is out of test-runner's control. Setting objects into the cls
object sometimes keeps those objects around longer than desired.
Its best to unset anything set in cls when the test is tore down.

Diffstat:
Mautotests/testEAP-WPS-Frag/wps_frag_test.py | 1+
Mautotests/testEAP-WPS/four_digit_pin_test.py | 1+
Mautotests/testEAP-WPS/pin_test.py | 1+
Mautotests/testEAP-WPS/push_button_test.py | 1+
Mautotests/testFT-8021x-roam/connection_test.py | 2++
Mautotests/testFT-FILS-SHA256/connection_test.py | 2++
Mautotests/testFT-FILS-SHA384/connection_test.py | 3+++
Mautotests/testFT-PSK-over-DS/connection_test.py | 2++
Mautotests/testFT-PSK-roam/connection_test.py | 2++
Mautotests/testFT-SAE-roam/connection_test.py | 2++
10 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/autotests/testEAP-WPS-Frag/wps_frag_test.py b/autotests/testEAP-WPS-Frag/wps_frag_test.py @@ -38,6 +38,7 @@ class Test(unittest.TestCase): @classmethod def tearDownClass(cls): IWD.clear_storage() + cls.hostapd = None if __name__ == '__main__': unittest.main(exit=True) diff --git a/autotests/testEAP-WPS/four_digit_pin_test.py b/autotests/testEAP-WPS/four_digit_pin_test.py @@ -43,6 +43,7 @@ class Test(unittest.TestCase): @classmethod def tearDownClass(cls): IWD.clear_storage() + cls.hostapd = None if __name__ == '__main__': unittest.main(exit=True) diff --git a/autotests/testEAP-WPS/pin_test.py b/autotests/testEAP-WPS/pin_test.py @@ -46,6 +46,7 @@ class Test(unittest.TestCase): @classmethod def tearDownClass(cls): IWD.clear_storage() + cls.hostapd = None if __name__ == '__main__': unittest.main(exit=True) diff --git a/autotests/testEAP-WPS/push_button_test.py b/autotests/testEAP-WPS/push_button_test.py @@ -41,6 +41,7 @@ class Test(unittest.TestCase): @classmethod def tearDownClass(cls): IWD.clear_storage() + cls.hostapd = None if __name__ == '__main__': unittest.main(exit=True) diff --git a/autotests/testFT-8021x-roam/connection_test.py b/autotests/testFT-8021x-roam/connection_test.py @@ -143,6 +143,8 @@ class Test(unittest.TestCase): @classmethod def tearDownClass(cls): IWD.clear_storage() + cls.bss_hostapd = None + cls.bss_radio = None if __name__ == '__main__': unittest.main(exit=True) diff --git a/autotests/testFT-FILS-SHA256/connection_test.py b/autotests/testFT-FILS-SHA256/connection_test.py @@ -174,6 +174,8 @@ class Test(unittest.TestCase): @classmethod def tearDownClass(cls): IWD.clear_storage() + cls.bss_hostapd = None + cls.bss_radio = None if __name__ == '__main__': unittest.main(exit=True) diff --git a/autotests/testFT-FILS-SHA384/connection_test.py b/autotests/testFT-FILS-SHA384/connection_test.py @@ -174,6 +174,9 @@ class Test(unittest.TestCase): @classmethod def tearDownClass(cls): IWD.clear_storage() + cls.bss_hostapd = None + cls.bss_radio = None + if __name__ == '__main__': unittest.main(exit=True) diff --git a/autotests/testFT-PSK-over-DS/connection_test.py b/autotests/testFT-PSK-over-DS/connection_test.py @@ -147,6 +147,8 @@ class Test(unittest.TestCase): @classmethod def tearDownClass(cls): IWD.clear_storage() + cls.bss_hostapd = None + cls.bss_radio = None if __name__ == '__main__': unittest.main(exit=True) diff --git a/autotests/testFT-PSK-roam/connection_test.py b/autotests/testFT-PSK-roam/connection_test.py @@ -140,6 +140,8 @@ class Test(unittest.TestCase): @classmethod def tearDownClass(cls): IWD.clear_storage() + cls.bss_hostapd = None + cls.bss_radio = None if __name__ == '__main__': unittest.main(exit=True) diff --git a/autotests/testFT-SAE-roam/connection_test.py b/autotests/testFT-SAE-roam/connection_test.py @@ -197,6 +197,8 @@ class Test(unittest.TestCase): @classmethod def tearDownClass(cls): IWD.clear_storage() + cls.bss_hostapd = None + cls.bss_radio = None if __name__ == '__main__': unittest.main(exit=True)