]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: remotehost: Remove wait_execute_complete
authorJanusz Dziedzic <janusz.dziedzic@gmail.com>
Sun, 10 Jan 2021 15:50:46 +0000 (16:50 +0100)
committerJouni Malinen <j@w1.fi>
Fri, 15 Jan 2021 10:15:59 +0000 (12:15 +0200)
Today we have thread_wait().

Fixes: 11b3af3dad12 ("tests: remotehost: Use correct name")
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
tests/hwsim/remotehost.py

index a5b85ac7d106e01318ec50ed5f50bc8ea4f4bfe8..60ad9792fbe5af603f4c60d4f6c1f9302ef20c93 100644 (file)
@@ -130,18 +130,18 @@ class Host():
             self.execute(cmd)
 
         # try again
-        self.wait_execute_complete(t, 5)
+        self.thread_wait(t, 5)
         if t.isAlive():
             cmd = ["kill `cat " + pid_file + "`"]
             self.execute(cmd)
 
         # try with -9
-        self.wait_execute_complete(t, 5)
+        self.thread_wait(t, 5)
         if t.isAlive():
             cmd = ["kill -9 `cat " + pid_file + "`"]
             self.execute(cmd)
 
-        self.wait_execute_complete(t, 5)
+        self.thread_wait(t, 5)
         if t.isAlive():
             raise Exception("thread still alive")