diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-11-21 10:50:07 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-10 00:24:25 +0000 |
commit | 3be4d4e2c3905f16a2cd7201fe378524a26bca00 (patch) | |
tree | 967e9bb2623bb0c17f505a5d470eaed788fee23f /meta/lib | |
parent | 8ae5a32559265cb85b3450aac6e5b64e6affc285 (diff) | |
download | poky-3be4d4e2c3905f16a2cd7201fe378524a26bca00.tar.gz |
oeqa/commands: Fix compatibility with python 3.9
Python 3.9 dropped isAlive() so use the preferred is_alive().
(From OE-Core rev: f101408bd43a5d41cb1710a7a848370292f84290)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9bb06428cbb2ac0f3d98a1696f050d3393385503)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/utils/commands.py | 4 |
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): | |||
125 | 125 | ||
126 | def stop(self): | 126 | def stop(self): |
127 | for thread in self.threads: | 127 | for thread in self.threads: |
128 | if thread.isAlive(): | 128 | if thread.is_alive(): |
129 | self.process.terminate() | 129 | self.process.terminate() |
130 | # let's give it more time to terminate gracefully before killing it | 130 | # let's give it more time to terminate gracefully before killing it |
131 | thread.join(5) | 131 | thread.join(5) |
132 | if thread.isAlive(): | 132 | if thread.is_alive(): |
133 | self.process.kill() | 133 | self.process.kill() |
134 | thread.join() | 134 | thread.join() |
135 | 135 | ||