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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8CD1FC433EF for ; Fri, 5 Nov 2021 02:07:37 +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 0190560E8C for ; Fri, 5 Nov 2021 02:07:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0190560E8C 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 228648377B; Fri, 5 Nov 2021 03:05:31 +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="iztTqr6b"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AFF38836F4; Fri, 5 Nov 2021 03:04:13 +0100 (CET) Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) (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 2150083745 for ; Fri, 5 Nov 2021 03:03:40 +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-ot1-x332.google.com with SMTP id q33-20020a056830442100b0055abeab1e9aso10974650otv.7 for ; Thu, 04 Nov 2021 19:03:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=L1A1pQfcjhUh+SoqXrwOpyn43G9m1UeHDZUqaYLgXh0=; b=iztTqr6bOWRMErm99mZHR8oJSjjJYQE59dlC9pLEFpn6vnh6vDCh3EJeEeGOehW0vv 4v/x2w+pGVkZnszLhEthq1ZLYnx3OtS4TaMNd68rZ5PRh4BR7fX116IGygo42vi4bh6L lUa9O1pqDMFEZPbSYAMQUeL6nF+ouFbhAc/a0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=L1A1pQfcjhUh+SoqXrwOpyn43G9m1UeHDZUqaYLgXh0=; b=etDPCV+AfBOAnzVD0GZHumU56PiYjlTNDt8DfDnBSdhwGv8mBwICXowhT1OMTZ26Qm Ohc3kmIr/dEgWe1GcLkfCxps/V6A1wfJyTG3am6lNGc1JwutRedBgU9Sc7mJf8DcCfWT BaiPxlp0MhZIfzQXIo/P/ZwGG8y5c1fwE3FQOh6rwI9pB5MnaFh0xIaiUyUG0ZnhWqOM Yv11+VQJ5PtqjhXs3FgHB2zxg+doNewk8++HyVoPi6xPiaDyHyJHBKLhXNdMoWH7ikqw KSQIuPc5M6IogJXWNTIyROzR++kgx3uPix0BuDzL42XONp4mMlP6EkUr/aTBBn8noZTd 52MA== X-Gm-Message-State: AOAM5313m/ImJIuvhA0qNTqjjLbx9k4A4XlchTOIRw6YW8kSuKfDjwzh jAm2LybEVEssolc3POMYGBMik5sfJfMLhcbbRRlQPg== X-Google-Smtp-Source: ABdhPJxYueW14rgkwe83H3pGLVMR3Clxm3NMi/DXUZ4MHDsLbbBHqNxqUnJs83DDesDVDX6vSxHC15czJK5IRZUkCYc= X-Received: by 2002:a9d:17c5:: with SMTP id j63mr41960818otj.191.1636077818567; Thu, 04 Nov 2021 19:03:38 -0700 (PDT) MIME-Version: 1.0 References: <20211104185231.2927-1-heiko.thiery@gmail.com> <20211104185231.2927-2-heiko.thiery@gmail.com> In-Reply-To: <20211104185231.2927-2-heiko.thiery@gmail.com> From: Simon Glass Date: Thu, 4 Nov 2021 20:02:45 -0600 Message-ID: Subject: Re: [RFC 1/2] patman: introduce RunException To: Heiko Thiery Cc: u-boot@lists.denx.de, Stefano Babic , Fabio Estevam , Michael Walle Content-Type: text/plain; charset="UTF-8" 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 On Thu, 4 Nov 2021 at 12:53, Heiko Thiery wrote: > > The RunException will be throws when the a command's return_code is not > equal zero. With this an external caller can catch that and has access > to the command/args, the result code, the stdout and stderr output. > > Signed-off-by: Heiko Thiery > --- > tools/patman/tools.py | 16 +++++++++++++--- > 1 file changed, 13 insertions(+), 3 deletions(-) Reviewed-by: Simon Glass