Message ID | 20211026033058.430010-4-sjg@chromium.org |
---|---|
State | Superseded |
Delegated to: | Heinrich Schuchardt |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.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=i6RAxZ+x; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Hdcqm2fHxz9sRN for <incoming@patchwork.ozlabs.org>; Tue, 26 Oct 2021 14:33:56 +1100 (AEDT) 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) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 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 <u-boot@lists.denx.de>; 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 <u-boot@lists.denx.de>; 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 <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>, Christian Melki <christian.melki@t2data.com>, Bin Meng <bmeng.cn@gmail.com>, Tom Rini <trini@konsulko.com>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org> 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 <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
efi: Improvements to U-Boot running on top of UEFI
|
expand
|
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
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 <sjg@chromium.org> --- (no changes since v1) tools/patman/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)