From patchwork Thu Dec 14 22:11:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alassane Yattara X-Patchwork-Id: 36287 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 136B8C4332F for ; Thu, 14 Dec 2023 22:12:13 +0000 (UTC) Received: from mail.savoirfairelinux.com (mail.savoirfairelinux.com [208.88.110.44]) by mx.groups.io with SMTP id smtpd.web10.41452.1702591927274163191 for ; Thu, 14 Dec 2023 14:12:07 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@savoirfairelinux.com header.s=DFC430D2-D198-11EC-948E-34200CB392D2 header.b=B3vCrPwF; spf=pass (domain: savoirfairelinux.com, ip: 208.88.110.44, mailfrom: alassane.yattara@savoirfairelinux.com) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id A0B6F9C36BA for ; Thu, 14 Dec 2023 17:12:06 -0500 (EST) Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavis, port 10032) with ESMTP id yEoU07I7AX2z; Thu, 14 Dec 2023 17:12:06 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 4ADD19C36B1; Thu, 14 Dec 2023 17:12:06 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.savoirfairelinux.com 4ADD19C36B1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=savoirfairelinux.com; s=DFC430D2-D198-11EC-948E-34200CB392D2; t=1702591926; bh=T40SCCGTFfMaLWWT3BLktyOQva7WuILNuLJoE9FRmps=; h=From:To:Date:Message-Id:MIME-Version; b=B3vCrPwFQsDJr1lyVU3dTW5u7uWVbSrTAnS848sWzYP++74KbnM47vAqK3KBRvg8+ TQ6hEHKLyY/G3n3Sb9UbAgEv37wqnm6bOjV4uwbuKvKqJUm1RF4rInlHwSwO4qTIbT H+Ar71AD8oFtG+iBTPRi+RmBqA+F86/jv+dpudYAPgBjFLRzbj/KR32UsPVDuBZK4v GG7XU0tGcIeGsNaUcCoZ8W6MutwoZHYwY/imKlcc2U6DGPY5aZhrmLbAIiA4kR762M zzUF013oTpSB9QTdR86ksRJX5zexyEvFlG0YK+uwGz7go3URjta/AKgWX+WENZil9q o8qT7EpBv3Org== X-Virus-Scanned: amavis at mail.savoirfairelinux.com Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavis, port 10026) with ESMTP id T40Nz_j5I9-Y; Thu, 14 Dec 2023 17:12:06 -0500 (EST) Received: from jedi.. (unknown [196.127.183.75]) by mail.savoirfairelinux.com (Postfix) with ESMTPSA id 3ABD99C3381; Thu, 14 Dec 2023 17:12:05 -0500 (EST) From: Alassane Yattara To: bitbake-devel@lists.openembedded.org Cc: Alassane Yattara Subject: [PATCH v2 2/6] toaster/test: logging warning in console, trying to kill unavailable Runbuilds process Date: Thu, 14 Dec 2023 23:11:53 +0100 Message-Id: <20231214221157.604253-2-alassane.yattara@savoirfairelinux.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231214221157.604253-1-alassane.yattara@savoirfairelinux.com> References: <20231214221157.604253-1-alassane.yattara@savoirfairelinux.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 14 Dec 2023 22:12:13 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/15677 Signed-off-by: Alassane Yattara --- lib/toaster/tests/commands/test_runbuilds.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/toaster/tests/commands/test_runbuilds.py b/lib/toaster/tests/commands/test_runbuilds.py index 738d36e9..849c227e 100644 --- a/lib/toaster/tests/commands/test_runbuilds.py +++ b/lib/toaster/tests/commands/test_runbuilds.py @@ -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):