summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-11-21 10:50:07 +0000
committerSteve Sakoman <steve@sakoman.com>2021-03-04 04:19:50 -1000
commit48acaa7d53b677f55c96289750aa0dd26345af7f (patch)
treebdfddc35b75f21bfde9932f06d1eaff0e810ed7e
parent7677ba25994ab6807519f3920c8cf6ad414ac415 (diff)
downloadopenembedded-core-contrib-48acaa7d53b677f55c96289750aa0dd26345af7f.tar.gz
openembedded-core-contrib-48acaa7d53b677f55c96289750aa0dd26345af7f.tar.bz2
openembedded-core-contrib-48acaa7d53b677f55c96289750aa0dd26345af7f.zip
oeqa/commands: Fix compatibility with python 3.9
Python 3.9 dropped isAlive() so use the preferred is_alive(). Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 9bb06428cbb2ac0f3d98a1696f050d3393385503) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/lib/oeqa/utils/commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py
index 8b3e12038d..a71c16ab14 100644
--- a/meta/lib/oeqa/utils/commands.py
+++ b/meta/lib/oeqa/utils/commands.py
@@ -125,11 +125,11 @@ class Command(object):
def stop(self):
for thread in self.threads:
- if thread.isAlive():
+ if thread.is_alive():
self.process.terminate()
# let's give it more time to terminate gracefully before killing it
thread.join(5)
- if thread.isAlive():
+ if thread.is_alive():
self.process.kill()
thread.join()