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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97245C433EF for ; Thu, 4 Nov 2021 03:11:10 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 1379961166 for ; Thu, 4 Nov 2021 03:11:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1379961166 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B053B83695; Thu, 4 Nov 2021 04:10:32 +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=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="mnovSwzu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 652738369A; Thu, 4 Nov 2021 04:10:14 +0100 (CET) Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) (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 703E883668 for ; Thu, 4 Nov 2021 04:09:58 +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@chromium.org Received: by mail-oi1-x22a.google.com with SMTP id u2so6952936oiu.12 for ; Wed, 03 Nov 2021 20:09:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yZ8smZCjJZTXycu/40do59bgAp/fXUYweW3fnTAJpEA=; b=mnovSwzuOgf7/nBCX/lKihXr+Dh+PVHOBo5nwU+FHd56MLxr3iZcs2jZnaz1rL7P3o eA9lsaVlD6Yq1RKaRlBVUyK6ihrh0JnifgP/0wxwQDZy/Kjv3YIBDQZ68Zscnu17RW35 0QnoYfQiTwUL35SHA/+393JDI3Pk7rDehfByk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yZ8smZCjJZTXycu/40do59bgAp/fXUYweW3fnTAJpEA=; b=d/vsVs/Ypej764Y2Qe5DqeVUjJhXSsTEqvk/zk52w+ztq98KLzRebsTA6l23j6Y1fY n6ennPN6QxHhD81KVgaTasZZjW0v6MJnOvtq8v/vDb/HBYky7xA5OWHx9GFzo8zip4bC JQOf3dywaYQxiAYU+hqoORFoBH7Gg5NrLoZ+HqqkWZCdXBU/TsRo/jAeR0NwDKdpdmas n5PiZIrSv97Ats7APNz97mztJeKChD04Bb6mDnPT8PPo7ZXIWqqVOTsUpRil0OjEEfhy CrbMgMnjp3iyHtOAX9bIbUNWBJQvAk7IfUwUO+kSqiDui+zaJncNhp6D0zE2/G5uWkyN uNcw== X-Gm-Message-State: AOAM531th/a7XhAYr4VCxcGEBUe8Dyie+zLPD7oZ8uaw+yQNS5z/mhd9 qnDwbC4EpXDU2L2a9lP/eKhRUQ+ohMYrgQ== X-Google-Smtp-Source: ABdhPJzKN/dWprjl76f6cDxSunkChQE8Kqb4Z75Vu15dzupss1KMwUJLgY1HSdViKp8BDxM9trZKBw== X-Received: by 2002:a54:4e1d:: with SMTP id a29mr13697654oiy.39.1635995396940; Wed, 03 Nov 2021 20:09:56 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id j25sm1050197oos.23.2021.11.03.20.09.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Nov 2021 20:09:56 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Ilias Apalodimas , Tom Rini , Christian Melki , Heinrich Schuchardt , Bin Meng , Simon Glass Subject: [PATCH v4 12/34] patman: Use a ValueError exception if tools.Run() fails Date: Wed, 3 Nov 2021 21:09:14 -0600 Message-Id: <20211104030936.2446706-4-sjg@chromium.org> X-Mailer: git-send-email 2.34.0.rc0.344.g81b53c2807-goog In-Reply-To: <20211104030936.2446706-1-sjg@chromium.org> References: <20211104030936.2446706-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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 The Exception base class is a very vague and could be confusing to the test system. Use the more specific ValueError exception instead. Signed-off-by: Simon Glass --- (no changes since v1) tools/patman/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/patman/tools.py b/tools/patman/tools.py index 710f1fdcd36..86c4f616206 100644 --- a/tools/patman/tools.py +++ b/tools/patman/tools.py @@ -349,7 +349,7 @@ def Run(name, *args, **kwargs): result = command.RunPipe([all_args], capture=True, capture_stderr=True, env=env, raise_on_error=False, binary=binary) if result.return_code: - raise Exception("Error %d running '%s': %s" % + raise ValueError("Error %d running '%s': %s" % (result.return_code,' '.join(all_args), result.stderr)) return result.stdout -- 2.34.0.rc0.344.g81b53c2807-goog