aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Prestwood <prestwoj@gmail.com>2023-11-08 09:21:48 -0800
committerDenis Kenzior <denkenz@gmail.com>2023-11-09 10:20:51 -0600
commitc193d3649970c336d13d6a860b1ae342182a457c (patch)
tree115f01282c9c2f85cacd45e81d0014b61f935072
parentf9833665b7af8a2a5ce959d42ac4608a3c6f2294 (diff)
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.
-rw-r--r--autotests/testDPP/connection_test.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/autotests/testDPP/connection_test.py b/autotests/testDPP/connection_test.py
index 0cab5ff11..f72a412d1 100644
--- 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()