From patchwork Sun Jan 16 20:19:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1580528 X-Patchwork-Delegate: trini@ti.com Return-Path: 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=IQcRw7h8; 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=) 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 4JcRJ33yLXz9ssD for ; Mon, 17 Jan 2022 07:21:07 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B14918363C; Sun, 16 Jan 2022 21:20:34 +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="IQcRw7h8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 18BF683618; Sun, 16 Jan 2022 21:20:13 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.7 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-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) (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 3315983623 for ; Sun, 16 Jan 2022 21:19:57 +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-il1-x12f.google.com with SMTP id d3so13075035ilr.10 for ; Sun, 16 Jan 2022 12:19:57 -0800 (PST) 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=4tjehp+8IztJsbQoqCeLTTW0yBdc6gRVmW/YP6fKue8=; b=IQcRw7h8G2RnaQ6VIiwY1GNpA+jhB74gEKl5lx9AgNYxE2r5gT3x545mrzWRq5DNNR Ot2ITBgeWuNNx5ZjLjHUHPUzwCJKkrJ71F+8ziUfcXe2lFGngGgMQIHhadXlUr4HVWQ6 JD857jzq2azA4T1lWEiM+2bbcKsiqk5L4N/EQ= 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=4tjehp+8IztJsbQoqCeLTTW0yBdc6gRVmW/YP6fKue8=; b=bbISngO91Wji2A3xuT3JCBL6qj/17BeeQiNHBlwFdouiKgucvx6byUXMSD3KTNkAxU RUErD4ie/uagNRpU+9lJy5UwqqC2boEmX6o6V3Vt2onYEokQLherwh1uO6iSiWYeUFIx rag2ab0BneBSXx0jidQ/7lJ89TMIODceTNwldi3F56MciFW3oBIwF1xB65IYUyEqnpzz kMak/wngPcaCjFV2XvwBucCM12SjN4khA9kJzBBNIXahUCu9GEXkSMMWz6qsIELOxn8h XXdcfYPxJJzNlsoLHOBLynMWZ6kJf+Dx3FPMXqAX9sRazl4FFDgq7Y4UhUioltQlbR5K ghng== X-Gm-Message-State: AOAM5319RfDvafoW4Nj28bf7uhjdnr6wXvX3+YmCYsiTubdu6uFxGlMF hwTL+hcMihlAABqX02QnMt6FcpsXXH4Ybw== X-Google-Smtp-Source: ABdhPJyRwXaYjwQd73A8zOqmj2cTnpNDdgGmpSguwLiWkkKqCpK/0ZaWlmT1IvgJ1uey6BxBsMbsUw== X-Received: by 2002:a92:874f:: with SMTP id d15mr9618932ilm.194.1642364395916; Sun, 16 Jan 2022 12:19:55 -0800 (PST) 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 e17sm8059248iow.30.2022.01.16.12.19.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jan 2022 12:19:55 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Rasmus Villemoes , Simon Glass Subject: [PATCH v4 08/13] buildman: Add a flag to control the traceback Date: Sun, 16 Jan 2022 13:19:32 -0700 Message-Id: <20220116131907.v4.8.I636748c91d1fdc7d2e39a3d636c03751004427d3@changeid> X-Mailer: git-send-email 2.34.1.703.g22d0c6ccf7-goog In-Reply-To: <20220116201937.1387697-1-sjg@chromium.org> References: <20220116201937.1387697-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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 the full horror of the Python traceback is shown by default. It is normally only useful for debugging. Turn it off by default and add a --debug flag to enable it. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/cmdline.py | 2 ++ tools/buildman/main.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/tools/buildman/cmdline.py b/tools/buildman/cmdline.py index 274b5ac3f45..092a82f4e9c 100644 --- a/tools/buildman/cmdline.py +++ b/tools/buildman/cmdline.py @@ -32,6 +32,8 @@ def ParseArgs(): help='Show detailed size delta for each board in the -S summary') parser.add_option('-D', '--config-only', action='store_true', default=False, help="Don't build, just configure each commit") + parser.add_option('--debug', action='store_true', + help='Enabling debugging (provides a full traceback on error)') parser.add_option('-e', '--show_errors', action='store_true', default=False, help='Show errors and warnings') parser.add_option('-E', '--warnings-as-errors', action='store_true', diff --git a/tools/buildman/main.py b/tools/buildman/main.py index 2b714739a20..04698ce9e50 100755 --- a/tools/buildman/main.py +++ b/tools/buildman/main.py @@ -54,6 +54,9 @@ def RunTests(skip_net_tests): options, args = cmdline.ParseArgs() +if not options.debug: + sys.tracebacklimit = 0 + # Run our meagre tests if options.test: RunTests(options.skip_net_tests)