| Message ID | 20260314231618.338113-8-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1773530258; bh=DQdZmpsLpjRXNoGLtaWpNXuq5zbH8u1a6kMqy0NNr40=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Z9jFAFO4fjIPl94muwkyA+SFy9phjfCPGiztIlfzxFeAD3Xq36tzIgelj3hvcwZ/j xGwef2g2RDLGjSfTERCYw3UFZyUst6r2V5xsqMVe+dTKafQyT/OXc66ehIb5qW1MOb dkpajPeUj7oqexRyjof8xxxPbd2CM2ajBlDXntvgi1hLRFp4wpjI9YenkgNH/d7kxS hdCQ6QnGsprEGEu1gBT8saatxwpCNA7C/c9RxpBkWykuZZSt/OdDWyZPQ6gfPshGJb ooKfIALEAYni4Wdj1qHj+Ah3RkpTaeiHl/jpgaXuVCt76k/rfmRraRUVqMFEM9e7p1 XwmSJMzgXLbgw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C50A569ECF for <u-boot-concept@u-boot.org>; Sat, 14 Mar 2026 17:17:38 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id aJI-fyNRT2sR for <u-boot-concept@u-boot.org>; Sat, 14 Mar 2026 17:17:38 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1773530257; bh=DQdZmpsLpjRXNoGLtaWpNXuq5zbH8u1a6kMqy0NNr40=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=jnEyRd+bwm3LFXfIu5tMM8oMS3UIt/kTUuNTUfN2OT1ZIeESG7u1Hj/W31F+XTC2R NhwrbtaFxYi4C6nYOJJyhbsqIxItj9MeOi6jFCGQTZPpEU1iIsKreuRb3DBW8MroBS VirOQsLhssRYMd5nuncT7DqxlMdKdhQYCB3UeFbhONl1+mhhqePfaK3ZgEUgKOMQ3o Y/+dcmUe7nTvRR0x9ctyjseWkB8pxJ6lFKiJ0X07mxoBDbakz1KOzyrVk5JKa5kyav cBwzylaMyaWjRbvbtWoCcbypcIYuBAf1JJoMQNs0LkVSIo4HbWfjul7JrUnNhyPE2Z qcD/1enVJgW7g== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B63516A031 for <u-boot-concept@u-boot.org>; Sat, 14 Mar 2026 17:17:37 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1773530256; bh=Oms3No2dBjbyqq1/s1bBOnWCf2J7VwNhrnbd7gCbg/s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bs1aEUjFRyGQ+w6UhTanPS3B6tpRrAGz5/lCAf6lWwZypwY4FGh2tgu0HMkCxW/al JAToyS/agdTvKAsDQHarnW33fUop6WfzTchvXa/qu64HLs7qiAsHQaXzqOMrcq1DLN UQM71xdJvYQo6HJgnk+yJ4jRjVzGx3A+K7K+QMmyRVKaXKYihwjnNcR9BNCejgQxVR XmuCHnyfLBB3uQnioFEU70V157z1G9pBAqOqE9Bg9XcjvnS/sSsp5i9IEPcEg9byJ3 IZ3Gjfr2vltekeA1IBpd6YYrDzvRA7FLWZ+J/uyRrsYckbFNlcc17uTNEzVQ7WIZcY vdIqhU2eQ5LgA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 2EDE06A033; Sat, 14 Mar 2026 17:17:36 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id DwcDk-IPGbNK; Sat, 14 Mar 2026 17:17:36 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1773530253; bh=vYHZjt8p5kSczk+YFaCLsAoNPTuZYcVokn8erkEkVeE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hhem2R9FI9PmTrG3XMS0pMSkXdOKa9CMA87/3BYuWIqWKgK6bhHu5hAqKgmQb/uKp RDpS4P9i9yuTForvrj9P6EmLDKRNg7zrh+nJkLAxgaYi7FV46yTgJX3oftj89tkiTQ inaiu5l+NS2OZSOcpQwcZ79grBYkzrgH8bVGMj3o0JO0DwriVdoPpeV67ZQG2JdNOj MHQ22D/L8X2q6WqitsGAUTPBDtkNoF5IfuT5XFb99qxrwkUIxJXSfn9ERZ7XZwjs/g Z+u7BVis4+XM9i1aMJMKekUiQCl1F0mCNXYNFcQua0ivj63nGT/TZgJucCOzchphcD 3jIr1LUaP309Q== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 696576A03B; Sat, 14 Mar 2026 17:17:33 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Sat, 14 Mar 2026 17:15:58 -0600 Message-ID: <20260314231618.338113-8-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260314231618.338113-1-sjg@u-boot.org> References: <20260314231618.338113-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: THXZFE4HGL7IRMIJNOFRC2I4KSWFUUUK X-Message-ID-Hash: THXZFE4HGL7IRMIJNOFRC2I4KSWFUUUK X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 07/19] test: py: Restore default log format after test_log_format() List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/THXZFE4HGL7IRMIJNOFRC2I4KSWFUUUK/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
test: Fix pytest inter-test side effects
|
|
Commit Message
Simon Glass
March 14, 2026, 11:15 p.m. UTC
From: Simon Glass <sjg@chromium.org> test_log_format() changes the log format to various values but does not restore the default at the end. This can affect later tests that depend on the default format. Add 'log format default' at the end of the test to restore it. Signed-off-by: Simon Glass <sjg@chromium.org> --- test/py/tests/test_log.py | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/test/py/tests/test_log.py b/test/py/tests/test_log.py index 3fc61e258a0..c1b7e1d6b1b 100644 --- a/test/py/tests/test_log.py +++ b/test/py/tests/test_log.py @@ -39,6 +39,8 @@ def test_log_format(ubman): run_with_format('lm', 'NOTICE. msg') run_with_format('m', 'msg') + ubman.run_command('log format default') + @pytest.mark.buildconfigspec('debug_uart') @pytest.mark.boardspec('sandbox') @pytest.mark.restart