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:
parent
41fae6e0bb
commit
b02a56bedb
1 changed files with 3 additions and 3 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue