From patchwork Sun Jul 16 00:35:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1808270 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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=) Authentication-Results: legolas.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=ghAyfTnp; dkim-atps=neutral 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 ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R3RBv60lgz20bh for ; Sun, 16 Jul 2023 10:37:59 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1057186237; Sun, 16 Jul 2023 02:37:39 +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="ghAyfTnp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A000E862AE; Sun, 16 Jul 2023 02:37:29 +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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) (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 547F38622E for ; Sun, 16 Jul 2023 02:37:26 +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-x12a.google.com with SMTP id e9e14a558f8ab-345e55a62d8so13770085ab.3 for ; Sat, 15 Jul 2023 17:37:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689467845; x=1692059845; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NRdd5w84jQmekSjxx5wlSO3FrgFXmNo5SxVotQBsHJc=; b=ghAyfTnpKn0CDkDjKf9o0Dn6hl504FXOMqiNb7IY9CmuyQq/DEcgwenxcsGWfREZOM ieTgHF85P0iExtsnGXKEwNsIr8tHLYBnlPFgQsTNhyKBqyfpwuC2K9aCEEQE5tUpQ8B/ uEhbMM2eYOqpsWotqNdjo13yAiXUGDdnev3kU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689467845; x=1692059845; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NRdd5w84jQmekSjxx5wlSO3FrgFXmNo5SxVotQBsHJc=; b=j85wZDxJqXH56QIroWICGjYs/CXxl1fi7iAPnipz7I6TORmYGex+ir17PoI7glafWA Jp2etwGpaXHpeCIpVNvZFPuTQjJfN6AGq+vuJgpNDG9iydMHwaUNeT2/R4RLc8guci/r Znbe/F2a6abzxzNP3D0jvtuMmMJrn4tDLjMflKAH0Xa9uIoN+sKJTYa7CnSVTlJXcZ4c 8rJmz12ZraMDN7IrXqtYJ5yTxSIhPQTNotypadhTy46rVa0d9qGRI7ZFMDRXo50UZCdu d99RKu/lkGa2jozoi9jUFMLwKi/aqGipbxXZwpFMUzv4cgwGjuU+OakcwY0TqZ/lRWH7 ZmSg== X-Gm-Message-State: ABy/qLa1LBQKJXF7ao6VrWwbo8HzwVOrRqKgKhjFBYXnDJOUUSi0wJNA iyptNkHCGXXp2ZJwgq+tj9askTq5FmXiORMg+pQ= X-Google-Smtp-Source: APBJJlGM2a9qn4d7mQ7OufNchn2irAGiKwUS1w/T30AdJqQO8afrwmkOgu0gGc86u6mOIcBpxErtXg== X-Received: by 2002:a5d:850f:0:b0:787:8cf:7426 with SMTP id q15-20020a5d850f000000b0078708cf7426mr7880036ion.6.1689467844967; Sat, 15 Jul 2023 17:37:24 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id t3-20020a05663801e300b0042b52dc77e3sm3510512jaq.158.2023.07.15.17.37.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 17:37:24 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v3 02/81] buildman: Allow --debug to enable debugging Date: Sat, 15 Jul 2023 18:35:30 -0600 Message-ID: <20230716003718.231903-3-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.455.g037347b96a-goog In-Reply-To: <20230716003718.231903-1-sjg@chromium.org> References: <20230716003718.231903-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.8 at phobos.denx.de X-Virus-Status: Clean The -D option is used, but plumb it through --debug to enable a full traceback when something goes wrong. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to allow --debug to enable debugging tools/buildman/main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/buildman/main.py b/tools/buildman/main.py index a2ffbc9073e7..5cbdce7cf34d 100755 --- a/tools/buildman/main.py +++ b/tools/buildman/main.py @@ -28,11 +28,12 @@ from patman import gitutil from u_boot_pylib import terminal from u_boot_pylib import test_util -def RunTests(skip_net_tests, verbose, args): +def RunTests(skip_net_tests, debug, verbose, args): """Run the buildman tests Args: skip_net_tests (bool): True to skip tests which need the network + debug (bool): True to run in debugging mode (full traceback) verbosity (int): Verbosity level to use (0-4) args (list of str): List of tests to run, empty to run all """ @@ -47,7 +48,7 @@ def RunTests(skip_net_tests, verbose, args): # Run the entry tests first ,since these need to be the first to import the # 'entry' module. result = test_util.run_test_suites( - 'buildman', False, verbose, False, None, test_name, [], + 'buildman', debug, verbose, False, None, test_name, [], [test.TestBuild, func_test.TestFunctional, 'buildman.toolchain', 'patman.gitutil']) @@ -61,7 +62,7 @@ def run_buildman(): # Run our meagre tests if cmdline.HAS_TESTS and options.test: - RunTests(options.skip_net_tests, options.verbose, args) + RunTests(options.skip_net_tests, options.debug, options.verbose, args) # Build selected commits for selected boards else: