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 5F6F8C001DF for ; Sun, 16 Jul 2023 00:37:48 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D74D986339; Sun, 16 Jul 2023 02:37:36 +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="AD1ENOWT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E31D58622E; Sun, 16 Jul 2023 02:37:29 +0200 (CEST) Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) (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 124AA8623A for ; Sun, 16 Jul 2023 02:37:27 +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-x12e.google.com with SMTP id e9e14a558f8ab-34574eb05f4so13895095ab.0 for ; Sat, 15 Jul 2023 17:37:27 -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=wKHlHt3OodWDt06kkiO/Vc9zqphAsh6ljWJY7yD4l88=; b=AD1ENOWTKPBNM0ms3KHYzUxFkMrGB3FhWO+E1divYi9zy1zkLXW1VmaFxZXaJo0zCT qpkr2NdRfGnRo/LxkamWDf3EPCIRfBvhkQAYnln2Y8WkvULoOHLqUnv9m8bYkDrzZUha n3j1hGYyilDVkuUeyvmrT4aaiTD5LYoHtB+Tg= 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=wKHlHt3OodWDt06kkiO/Vc9zqphAsh6ljWJY7yD4l88=; b=fd2OzDi0k/TzJofVVxR3HdprjhDLZPlgl0RCJPHwoBTcetu31vvupgpdv+ZHxGZKq1 +QerV3qHy02ji6ro/pOjq+n9nNyIlyC/9YjoJ/IbreCL6TTXkOPb3tBqUQvUYiz/Qlz7 dPk8aaL1bUtJvf+ST78+RpXvKozddsRRYs9GraqZjrOnwDprpAreffzX+35QSvFFlLRu YhPlZQNY73pllpjYcxaqgEJd61mkBuqYYUIrNfmCy9GEZmd5C6oD9CizMv2zwkk4hgU2 F6nk9p7UBdqp8MOADbR4dysjXIxrGTrHBIRF7gN2dRMpfCt5xf6Cu06lbtWlf/eQtqSZ vang== X-Gm-Message-State: ABy/qLZ2f18Nv7wL3xS6VelgyrtgtEJx5HkT0Hhd6FwPDPhX3cYJRyHp aggiSOUmCO/CLrX7KjSesPD2/pM19ShhU6TlaBg= X-Google-Smtp-Source: APBJJlEQfRi8CUCy9xcsSMyHEjHNgUqyHcqOFr+xGetOXbHJMzw7gtsmoI+GT50Tlbyrjcjw96cMWw== X-Received: by 2002:a92:cc48:0:b0:345:e1be:1567 with SMTP id t8-20020a92cc48000000b00345e1be1567mr7008249ilq.25.1689467845636; Sat, 15 Jul 2023 17:37:25 -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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 17:37:25 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v3 03/81] buildman: Exit with the return code consistently Date: Sat, 15 Jul 2023 18:35:31 -0600 Message-ID: <20230716003718.231903-4-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 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 Test should return a suitable exit code when they fail. Fix this and tidy up the code a little. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to exit with the return code consistently tools/buildman/main.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/buildman/main.py b/tools/buildman/main.py index 5cbdce7cf34d..096f5328a272 100755 --- a/tools/buildman/main.py +++ b/tools/buildman/main.py @@ -62,14 +62,16 @@ def run_buildman(): # Run our meagre tests if cmdline.HAS_TESTS and options.test: - RunTests(options.skip_net_tests, options.debug, options.verbose, args) + return RunTests(options.skip_net_tests, options.debug, options.verbose, + args) # Build selected commits for selected boards else: bsettings.Setup(options.config_file) ret_code = control.DoBuildman(options, args) - sys.exit(ret_code) + return ret_code + return 0 if __name__ == "__main__": - run_buildman() + sys.exit(run_buildman()) -- 2.41.0.455.g037347b96a-goog