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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 0A087C001B0 for ; Wed, 19 Jul 2023 23:50:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BAE58867B5; Thu, 20 Jul 2023 01:50:18 +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="VpeAIMbp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 849D2867B3; Thu, 20 Jul 2023 01:50:08 +0200 (CEST) Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) (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 BDF3B86772 for ; Thu, 20 Jul 2023 01:50:01 +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-x12d.google.com with SMTP id e9e14a558f8ab-3461053677eso799675ab.0 for ; Wed, 19 Jul 2023 16:50:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689810600; x=1690415400; 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=dKTRvh9mMMbnxLZU0oorl8UiMzT4BdhBUbreZuI5uBs=; b=VpeAIMbpQHxWPbUPmzDOlMvzrMlHw0WMt5yPMC/UlhhoW1T6isSHgFIzFiUbj80ndA 1ERyvQTEVh2if4vqdKYvx1CxKEpaGVVYhw6dpRwqTv2qP0W9ZDs/21XZrOtwqGM41Zm5 znz03nnOGjB8NifYLKkeX7yyQ6jXlXfQgBNjg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689810600; x=1690415400; 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=dKTRvh9mMMbnxLZU0oorl8UiMzT4BdhBUbreZuI5uBs=; b=R6mpAA2r++SGSxsszzhrs0gwEIbhUo9/Ld4AN0Hn1lL0OYwWu5DetfQCT+RqClQdcO 2s3DWiGDe0Ag4TnICF6ZHewtbp+uBRHLrdzvI5XMQnkYW6/Kh+Gmguiu42TpM5x+HSKm HoWfijNYts3phUiJzT2ssHNnX5k5Ulr27f92l2M3J2wCeBgOo2Yu3y8waDjzlw38J1VT CENapzl6ATm4rybf85CZLVHN+JvBNTmxt15LBsLRHK8oOm2+xtBZ/UBWbj9xzFxH67io hhftVFfHnEkENXwGXawFKK96iRiHU8/if8eanESUMK1wtHiXVwQWfCf6xPnONZw9A8aX otSg== X-Gm-Message-State: ABy/qLak6uhFx19Qho2ymfqfkjnkFQmZhvjFTZ8NHIz1ZVYj+RMFu3BH zCMykwsN7tumESt4AhEEJkw/6bJVtYBY9Ijz5Ks= X-Google-Smtp-Source: APBJJlEA0WvJxpy5fWfnKrXTUrSOLEGgptGLHyvMvjL6pasNLDHDNoLDJ4czOqVZs/CNG+G8sj64Hw== X-Received: by 2002:a05:6e02:f84:b0:342:558c:d88e with SMTP id v4-20020a056e020f8400b00342558cd88emr2333518ilo.11.1689810600322; Wed, 19 Jul 2023 16:50:00 -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 ed16-20020a056638291000b0042bb1779c18sm1551779jab.151.2023.07.19.16.49.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 16:50:00 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v4 02/83] buildman: Allow --debug to enable debugging Date: Wed, 19 Jul 2023 17:48:10 -0600 Message-ID: <20230719234953.796101-3-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog In-Reply-To: <20230719234953.796101-1-sjg@chromium.org> References: <20230719234953.796101-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- (no changes since v3) 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: -- 2.41.0.487.g6d72f3e995-goog