eiwd

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

commit 1f4d73ab73f851fe15211ced4b560c21f094eeb1
parent 8aac527e293711e8277eff3a072844e2c5734c34
Author: James Prestwood <prestwoj@gmail.com>
Date:   Thu, 22 Apr 2021 10:37:43 -0700

auto-t: add more cleanup to ofono based tests (again)

The AuthCenter was still not being fully cleaned up in these
tests. It was being stopped but there was still a reference being
held which prevented __del__ from being called.

Diffstat:
Mautotests/testEAP-AKA-ofono/connection_test.py | 1+
Mautotests/testEAP-AKA-prime-ofono/connection_test.py | 1+
Mautotests/testEAP-PEAP-SIM/connection_test.py | 12++++++------
Mautotests/testEAP-SIM-ofono/connection_test.py | 1+
4 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/autotests/testEAP-AKA-ofono/connection_test.py b/autotests/testEAP-AKA-ofono/connection_test.py @@ -61,6 +61,7 @@ class Test(unittest.TestCase): IWD.clear_storage() cls.auth.stop() + cls.auth = None if __name__ == '__main__': unittest.main(exit=True) diff --git a/autotests/testEAP-AKA-prime-ofono/connection_test.py b/autotests/testEAP-AKA-prime-ofono/connection_test.py @@ -60,6 +60,7 @@ class Test(unittest.TestCase): def tearDownClass(cls): IWD.clear_storage() cls.auth.stop() + cls.auth = None if __name__ == '__main__': unittest.main(exit=True) diff --git a/autotests/testEAP-PEAP-SIM/connection_test.py b/autotests/testEAP-PEAP-SIM/connection_test.py @@ -44,26 +44,26 @@ class Test(unittest.TestCase): def test_connection_success(self): - auth = AuthCenter('/tmp/hlrauc.sock', '/tmp/sim.db') - ofono = Ofono() ofono.enable_modem('/phonesim') ofono.wait_for_sim_auth() wd = IWD(True) - try: - self.validate_connection(wd) - finally: - auth.stop() + self.validate_connection(wd) @classmethod def setUpClass(cls): + cls.auth = AuthCenter('/tmp/hlrauc.sock', '/tmp/sim.db') + IWD.copy_to_storage('ssidEAP-PEAP-SIM.8021x') @classmethod def tearDownClass(cls): IWD.clear_storage() + cls.auth.stop() + cls.auth = None + if __name__ == '__main__': unittest.main(exit=True) diff --git a/autotests/testEAP-SIM-ofono/connection_test.py b/autotests/testEAP-SIM-ofono/connection_test.py @@ -62,6 +62,7 @@ class Test(unittest.TestCase): IWD.clear_storage() cls.auth.stop() + cls.auth = None if __name__ == '__main__': unittest.main(exit=True)