From mboxrd@z Thu Jan 1 00:00:00 1970 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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 94837F8E48C for ; Thu, 16 Apr 2026 22:59:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 09B9B83FC0; Fri, 17 Apr 2026 00:59:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 9AD6B8407E; Fri, 17 Apr 2026 00:59:19 +0200 (CEST) Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [IPv6:2a07:2ec0:3002::65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 5130183EEF for ; Fri, 17 Apr 2026 00:59:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=daniel@makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.99) (envelope-from ) id 1wDVfc-000000006lY-3AeT; Thu, 16 Apr 2026 22:58:48 +0000 Date: Thu, 16 Apr 2026 23:58:45 +0100 From: Daniel Golle To: Simon Glass Cc: Tom Rini , Quentin Schulz , Kory Maincent , Mattijs Korpershoek , Peng Fan , Heinrich Schuchardt , Martin Schwan , Anshul Dalal , Ilias Apalodimas , Sughosh Ganu , Aristo Chen , Ludwig Nussel , Benjamin ROBIN , Marek Vasut , James Hilliard , Wolfgang Wallner , Kunihiko Hayashi , David Lechner , Neil Armstrong , Mayuresh Chitale , Jonas Karlman , Shiji Yang , Rasmus Villemoes , Francois Berder , u-boot@lists.denx.de Subject: Re: [PATCH v2 7/7] test: py: add mkimage dm-verity round-trip test Message-ID: References: <9ceb70fcad4dec6efae1b03297f38665926b6c9f.1776302806.git.daniel@makrotopia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On Fri, Apr 17, 2026 at 07:36:17AM +1200, Simon Glass wrote: > Hi Daniel, > > On 2026-04-16T01:46:15, Daniel Golle wrote: > > test: py: add mkimage dm-verity round-trip test > > > > Add test/py/tests/test_fit_verity.py with two tests. > > > > Both tests are skipped if veritysetup is not installed on the host. > > > > Signed-off-by: Daniel Golle > > > > test/py/tests/test_fit_verity.py | 153 +++++++++++++++++++++++++++++++++++++++ > > 1 file changed, 153 insertions(+) > > > diff --git a/test/py/tests/test_fit_verity.py b/test/py/tests/test_fit_verity.py > > @@ -0,0 +1,153 @@ > > +import struct > > The struct import seems to be unused. > > > diff --git a/test/py/tests/test_fit_verity.py b/test/py/tests/test_fit_verity.py > > @@ -0,0 +1,153 @@ > > +def have_veritysetup(): > > + return shutil.which('veritysetup') is not None > > + > > + > > +@pytest.mark.requiredtool('dtc') > > +@pytest.mark.requiredtool('fdtget') > > +@pytest.mark.skipif(not have_veritysetup(), > > + reason='veritysetup not installed') > > +def test_mkimage_verity(ubman): > > The test infrastructure supports > @pytest.mark.requiredtool('veritysetup') which handles the skip > message consistently. That also means you can drop the > have_veritysetup() helper. I have to admit that Python is not one of my strengths... I'll try to figure it out and address this in v3.