commit c193d3649970c336d13d6a860b1ae342182a457c
parent f9833665b7af8a2a5ce959d42ac4608a3c6f2294
Author: James Prestwood <prestwoj@gmail.com>
Date: Wed, 8 Nov 2023 09:21:48 -0800
auto-t: fix testDPP after Stop() change
Stop() will now return NotFound if DPP is not running. This causes
the DPP test to fail since it calls this regardless if the protocol
already stopped. Ignore this exception since tests end in various
states, some stopped and some not.
Diffstat:
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/autotests/testDPP/connection_test.py b/autotests/testDPP/connection_test.py
@@ -148,8 +148,13 @@ class Test(unittest.TestCase):
self.rule0.drop = True
def tearDown(self):
- self.device.disconnect()
- self.device.dpp_stop()
+ # Tests end in various states, don't fail when tearing down.
+ try:
+ self.device.disconnect()
+ self.device.dpp_stop()
+ except:
+ pass
+
self.wpas.dpp_configurator_remove()
self.wpas.clean_up()