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 DB1DEC433EF for ; Wed, 24 Nov 2021 22:22:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C7C6482FD6; Wed, 24 Nov 2021 23:22:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (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=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="BJuFp46j"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 805A282FD6; Wed, 24 Nov 2021 23:22:27 +0100 (CET) Received: from mail-ua1-x92e.google.com (mail-ua1-x92e.google.com [IPv6:2607:f8b0:4864:20::92e]) (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 396CB812C3 for ; Wed, 24 Nov 2021 23:22:24 +0100 (CET) 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@google.com Received: by mail-ua1-x92e.google.com with SMTP id l24so8314072uak.2 for ; Wed, 24 Nov 2021 14:22:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:from:in-reply-to:references:date:message-id :subject:to:cc; bh=0xQkvMLYL8OFl0ZSL/1Kd1Du0vTJ8udixRvp2vqwXH0=; b=BJuFp46jgQXBFNgn0KTG9JDckoBEkm/wPCFH/FPKkmMoj0nKpPziVqgCThXLyMPz3n hxD/wQGZatBzHCQ/3hPAyGrxqMTQgD8fh550a9yCqC2/j9eIAG4wRC9KObKBJwMSxfa5 v3VE7/i+Xy39wL3KtX+uSPcm5RvBel6cy2a0Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:sender:from:in-reply-to:references :date:message-id:subject:to:cc; bh=0xQkvMLYL8OFl0ZSL/1Kd1Du0vTJ8udixRvp2vqwXH0=; b=5VboQ/9r7gF2SNsf8l7X7wK95krjh5uV9cl1MXqInUfyjP6t/zjyowr1S1of1mfbEv zwgueGwgiNFH8Y1acLe+bOEuwpaibOsXdnCdfIaGzNGaGqg3QBqZ5WxffkulW67YQBte QsTeZgHy0G7XDF39WajpCa5z7CZ4Q//EFQYqnM55facDS8Os6HCMrPPZJQ2q21s/Z/kC X5pc9egdWr68CbzW/4L2+96VqfowINhwliHkeyZV1UnrpY6PPQQJ+BplmYxCNdY76W/n e4qLeoPF6bg2lGWRAJf43CVBlAbxjkSbgHuXLzdyMpyW4mhRF2gnE+n3EOk8zTnsZgBd YNpQ== X-Gm-Message-State: AOAM533quqT9C8fp94uIMG2xp97oXnxLPd8a8fWb92yyHo7k7MQ515jl o4w0CK7ehJpk3iMKpkv+GpO+BEhQay0B4vaXAx1M8w== X-Google-Smtp-Source: ABdhPJwX1R423xxA3+CD9lCN09LHHiIpaOuRRMkIv64XeXoCmyQad4y10MerAj8Bq34Aw8cF2f4W7c2HHgYd8n8WXPc= X-Received: by 2002:ab0:2983:: with SMTP id u3mr16468561uap.35.1637792542776; Wed, 24 Nov 2021 14:22:22 -0800 (PST) Received: from 480794996271 named unknown by gmailapi.google.com with HTTPREST; Wed, 24 Nov 2021 17:22:21 -0500 MIME-Version: 1.0 From: Simon Glass In-Reply-To: <20211023232635.9195-17-sjg@chromium.org> References: <20211023232635.9195-17-sjg@chromium.org> <20211023232635.9195-1-sjg@chromium.org> Date: Wed, 24 Nov 2021 17:22:21 -0500 X-Google-Sender-Auth: eUocPicOA24Wc0WD7aalxEenRdE Message-ID: Subject: Re: [PATCH v2 18/41] test/py: Raise a ValueError if a command fails To: Simon Glass Cc: Michal Simek , Heinrich Schuchardt , Tom Rini , Ilias Apalodimas , Daniel Schwierzeck , Steffen Jaeckel , =?UTF-8?B?TWFyZWsgQmVow7pu?= , Lukas Auer , Dennis Gilmore , Stephen Warren , Stephen Warren , U-Boot Mailing List Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 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.2 at phobos.denx.de X-Virus-Status: Clean At present an Exception is raised if a command fails. This is a very broad class and makes it difficult for callers to catch the error without also catching other things, like programming bugs. Change it to ValueError to make this easier. Signed-off-by: Simon Glass --- (no changes since v1) test/py/multiplexed_log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-dm/next, thanks!