From patchwork Tue Jun 11 20:01:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1946524 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=K6n4eTo6; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VzKTh2yJ2z1ydW for ; Wed, 12 Jun 2024 06:07:36 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5F0D588804; Tue, 11 Jun 2024 22:02:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="K6n4eTo6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B34E3887CC; Tue, 11 Jun 2024 22:02:40 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 19343887DD for ; Tue, 11 Jun 2024 22:02:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x12e.google.com with SMTP id e9e14a558f8ab-37597eba356so14071125ab.2 for ; Tue, 11 Jun 2024 13:02:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1718136157; x=1718740957; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=44bk925XlBlo4oIPhsCGOVqldbsxzgGdPRMUpsyUgp0=; b=K6n4eTo6U8mZ55xi2CFFGHzjGd28w1xcfwxOdoT6pLsdDIPmOwePj4ofuwsd/E5zQc AE3CZUI78MFhLFjos8PE2XYaOwiCZwUQvhdH9wIWx921bsImn1GFoW7vb0mLr2mGvWmo AbzZfq9WROTno9nqTQzsEzSK1q7pPlXmJWpmw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718136157; x=1718740957; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=44bk925XlBlo4oIPhsCGOVqldbsxzgGdPRMUpsyUgp0=; b=Npk6V8wI2NEJUBtTZS1Q4Gw7LXDly0JjG5PwS9OsIyiD8BQ+iQs4kq7M82czr2hoIg snY8i5ZWUnXIHMoVy4KMn5kBb0Yc6cR9EjUv2W1ycjqCNWhh6O3uw6VJqIexVaV7B64h Sd8g+4LLIXC2x7mOmTLb9t0f/aAeEfTgfrSlGmY6jnqc3TJWG8g3k7h4tm9JnDF5Fg4P 5zkBDxxuiv1XKB51Z6sw70G//NeT6FPpSYTJtD69HRSw9Xc0+aeawiAdy/gmDrWVTvhB GmdR38spmGqCipwpuFgpETgLSHcWukSht731C5qR3TpW9V2JdIIYZo2v7AQZhR/L6mhM c95w== X-Gm-Message-State: AOJu0YyppS8P5FzlrhhGIHzdBlJmOOSPJtSKWmo2Y8wvoxynAMZ1pdht Amd61eWnjjpgeoZd/tN1a6EFJdP04fRQiFJuzChEAbBkKkBBSEahjwLZ/5JhtG6k7jjQ7bneuMs 3/g== X-Google-Smtp-Source: AGHT+IEZ2uglipTU5Akx19wF8fIJbn/4vCPtdZWJuArxusfyWXMGyqrMcphunIJoXinBTt22LcaqIw== X-Received: by 2002:a92:290e:0:b0:375:8b0e:4434 with SMTP id e9e14a558f8ab-3758b0e477fmr96496645ab.16.1718136156716; Tue, 11 Jun 2024 13:02:36 -0700 (PDT) Received: from chromium.org (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-375ca7617cbsm1119305ab.30.2024.06.11.13.02.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 13:02:36 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Marek Vasut , Pavel Herrmann Subject: [PATCH 28/42] test: dm: Show failing driver name Date: Tue, 11 Jun 2024 14:01:42 -0600 Message-Id: <20240611200156.2245525-29-sjg@chromium.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240611200156.2245525-1-sjg@chromium.org> References: <20240611200156.2245525-1-sjg@chromium.org> MIME-Version: 1.0 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 When a driver is not registered properly it is not clear which one it is. Adjust test_dm_compat() to show this. Signed-off-by: Simon Glass --- test/py/tests/test_dm.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/py/tests/test_dm.py b/test/py/tests/test_dm.py index 68d4ea12235..be94971e455 100644 --- a/test/py/tests/test_dm.py +++ b/test/py/tests/test_dm.py @@ -13,8 +13,11 @@ def test_dm_compat(u_boot_console): for line in response[:-1].split('\n')[2:]) response = u_boot_console.run_command('dm compat') + bad_drivers = set() for driver in drivers: - assert driver in response + if not driver in response: + bad_drivers.add(driver) + assert not bad_drivers # check sorting - output looks something like this: # testacpi 0 [ ] testacpi_drv |-- acpi-test