tests: remotehost: Remove wait_execute_complete

Today we have thread_wait().

Fixes: 11b3af3dad ("tests: remotehost: Use correct name")
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
This commit is contained in:
Janusz Dziedzic 2021-01-10 16:50:46 +01:00 committed by Jouni Malinen
parent 41fae6e0bb
commit b02a56bedb

View 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")