public inbox for iwd@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH 1/3] auto-t: add explicit stop() to IWD class
@ 2023-12-05 17:52 James Prestwood
  2023-12-05 17:52 ` [PATCH 2/3] auto-t: add association timeout test James Prestwood
  2023-12-05 17:52 ` [PATCH 3/3] netdev: hack back in disconnect event James Prestwood
  0 siblings, 2 replies; 6+ messages in thread
From: James Prestwood @ 2023-12-05 17:52 UTC (permalink / raw)
  To: iwd; +Cc: James Prestwood

If tests end in an unknown state it is sometimes required that IWD
be stopped manually in order for future tests to run. Add a stop()
method so test tearDown() methods can explicitly stop IWD.
---
 autotests/util/iwd.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/autotests/util/iwd.py b/autotests/util/iwd.py
index 3f200beb..b1a57cab 100755
--- a/autotests/util/iwd.py
+++ b/autotests/util/iwd.py
@@ -1363,6 +1363,10 @@ class IWD(AsyncOpAbstract):
 
         self.psk_agents = []
 
+    def stop(self):
+        if self.namespace.is_process_running('iwd'):
+            self._iwd_proc.kill()
+
     def __del__(self):
         for agent in self.psk_agents:
             self.unregister_psk_agent(agent)
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-05 21:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-05 17:52 [PATCH 1/3] auto-t: add explicit stop() to IWD class James Prestwood
2023-12-05 17:52 ` [PATCH 2/3] auto-t: add association timeout test James Prestwood
2023-12-05 17:52 ` [PATCH 3/3] netdev: hack back in disconnect event James Prestwood
2023-12-05 21:37   ` Denis Kenzior
2023-12-05 21:45     ` James Prestwood
2023-12-05 21:53       ` Denis Kenzior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox