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 26F94C433EF for ; Tue, 26 Oct 2021 03:33:54 +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 99A0A61039 for ; Tue, 26 Oct 2021 03:33:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 99A0A61039 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 133C78358E; Tue, 26 Oct 2021 05:32:52 +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="i6RAxZ+x"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EE50C83576; Tue, 26 Oct 2021 05:31:30 +0200 (CEST) Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) (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 3309983556 for ; Tue, 26 Oct 2021 05:31:19 +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-x130.google.com with SMTP id y17so15412891ilb.9 for ; Mon, 25 Oct 2021 20:31:19 -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=GXLe3cfJCPHbknjWv7Vc+GejMQ69ThJA5Wl2gwzA1Rs=; b=i6RAxZ+xbFI+OT7EDA1Lbae1jmNxobKTgAFz1TPEtzQIIS+Sux9Y2NnKSGj0DvuxDD EZ+CQ+go0WvF5yH7B8KpiUP+5jCAhcEGFXeQgZE4yaCX/sZdEUSKDG8IEhULAJJ9eg4E eoevceuN8KUJXqb4OrNCztwzd4izoQV/xdexM= 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=GXLe3cfJCPHbknjWv7Vc+GejMQ69ThJA5Wl2gwzA1Rs=; b=s9wcAUtxn1D40aY5qEpx2nhoc9MpFfT9cOkiCHOAws2ZK/2CpWx36i7hh9GZJDkgcV DLPXnkG5xTArWChgXC6HHav4lWm+mgYBX7VKubkBwhRvYBeT88GhkBJQrjQfeXrzKZHL 5zv5EDlj4iIUz16WxMQr92k9gEfnyLcU2bw5N8eVsfbd3kRBMPr7iJoItFakgVSmBHws QxT51rKdn0tgfncsrwvM395BOkFl9z+H3tJ5cAh1gWIK1p9gwURORGHNtKHRVg0jPfbb FshTlxG+Na48WdOsHuXI7+zGpmLai+s95JZIyv1ng5+pcpms6KtTdTdR1S/YPIH5e/mg akbQ== X-Gm-Message-State: AOAM532FMTypscS+wr5w4iWstULK/AapUi3Fbt+bouQKveo02VoEEXVa F5bqVZOKY7qjkLyVCxcAAmevo1q60zm0gg== X-Google-Smtp-Source: ABdhPJxg8TAmnFXDez5Lc+4Cakdstfbv9KCnh0EQuW/dYJQIK3raAcxzEsPPnjcOo7KIC4lkD0TUew== X-Received: by 2002:a05:6e02:188e:: with SMTP id o14mr7027678ilu.114.1635219077764; Mon, 25 Oct 2021 20:31:17 -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 s10sm10127203ild.78.2021.10.25.20.31.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Oct 2021 20:31:17 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Ilias Apalodimas , Christian Melki , Bin Meng , Tom Rini , Heinrich Schuchardt , Simon Glass Subject: [PATCH v3 12/35] patman: Use a ValueError exception if tools.Run() fails Date: Mon, 25 Oct 2021 21:30:35 -0600 Message-Id: <20211026033058.430010-4-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.1079.g6e70778dc9-goog In-Reply-To: <20211026033058.430010-1-sjg@chromium.org> References: <20211026033058.430010-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.33.0.1079.g6e70778dc9-goog