mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
0fd93b86c4
commit
5648636a8b
@@ -22,8 +22,6 @@ import signal
|
||||
import logging
|
||||
|
||||
|
||||
logger = logging.getLogger("toaster")
|
||||
|
||||
class KillRunbuilds(threading.Thread):
|
||||
""" Kill the runbuilds process after an amount of time """
|
||||
def __init__(self, *args, **kwargs):
|
||||
@@ -43,7 +41,7 @@ class KillRunbuilds(threading.Thread):
|
||||
pid = pidfile.read()
|
||||
os.kill(int(pid), signal.SIGTERM)
|
||||
except ProcessLookupError:
|
||||
logger.warning("Runbuilds not running or already killed")
|
||||
logging.warning("Runbuilds not running or already killed")
|
||||
|
||||
|
||||
class TestCommands(TestCase):
|
||||
|
||||
Reference in New Issue
Block a user