summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlassane Yattara <alassane.yattara@savoirfairelinux.com>2023-12-14 23:11:28 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-15 14:37:28 +0000
commit5648636a8b5c7b45d5c37a73bfd41cb416f91557 (patch)
treeebfc638c5ddeb8fb98e33d8c02d1866c2d97d8c9
parent0fd93b86c46d96fd14a67b5ef516fdafd788efb8 (diff)
downloadpoky-5648636a8b5c7b45d5c37a73bfd41cb416f91557.tar.gz
bitbake: toaster/tests: logging warning in console, trying to kill unavailable Runbuilds process
(Bitbake rev: 26100ca3b5e451e9d296654fc8c47a4299fea835) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/toaster/tests/commands/test_runbuilds.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/tests/commands/test_runbuilds.py b/bitbake/lib/toaster/tests/commands/test_runbuilds.py
index 738d36e98d..849c227edc 100644
--- a/bitbake/lib/toaster/tests/commands/test_runbuilds.py
+++ b/bitbake/lib/toaster/tests/commands/test_runbuilds.py
@@ -22,8 +22,6 @@ import signal
22import logging 22import logging
23 23
24 24
25logger = logging.getLogger("toaster")
26
27class KillRunbuilds(threading.Thread): 25class KillRunbuilds(threading.Thread):
28 """ Kill the runbuilds process after an amount of time """ 26 """ Kill the runbuilds process after an amount of time """
29 def __init__(self, *args, **kwargs): 27 def __init__(self, *args, **kwargs):
@@ -43,7 +41,7 @@ class KillRunbuilds(threading.Thread):
43 pid = pidfile.read() 41 pid = pidfile.read()
44 os.kill(int(pid), signal.SIGTERM) 42 os.kill(int(pid), signal.SIGTERM)
45 except ProcessLookupError: 43 except ProcessLookupError:
46 logger.warning("Runbuilds not running or already killed") 44 logging.warning("Runbuilds not running or already killed")
47 45
48 46
49class TestCommands(TestCase): 47class TestCommands(TestCase):