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 B128BC001B0 for ; Wed, 19 Jul 2023 23:51:17 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D8EB0867CB; Thu, 20 Jul 2023 01:50:21 +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="jQ22Jy73"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AED68867B2; Thu, 20 Jul 2023 01:50:09 +0200 (CEST) Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) (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 7BFA986791 for ; Thu, 20 Jul 2023 01:50:02 +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-io1-xd31.google.com with SMTP id ca18e2360f4ac-7836164a08aso8422839f.1 for ; Wed, 19 Jul 2023 16:50:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689810601; x=1690415401; 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=iJH5s6N75v3QbfxuL2isjmJrH/TtEm2RYWH51JDfiYI=; b=jQ22Jy7304vNwaglC5MIE2j67V5bZ23c2TbXQ40Gwx33IHwTaMWFJ4+pHDWAlFuOww 5DwcFHigaIUmESOgAhij068fSbIDxdBnsEDqjCvHbo4GvpqvodK+Zy/XQazhCo6N2MkZ stbH4E448RyUqW5nJDLuff86DETfNeF9ricUs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689810601; x=1690415401; 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=iJH5s6N75v3QbfxuL2isjmJrH/TtEm2RYWH51JDfiYI=; b=e3CPhb8l5f7p/e5yssN+dtTHMhi2u0NNZix6H48biEA97jAVETT/hMlVTWSfWH9dTh yFhmyieBAQYpDZPPdn57J6m5DEQmAJStYz3nDtksYGTWQRL8vSnks8NjSNIuZ/Pg8QBy dnudAcGWLEwjAiLBcUEMTy1mtIbNUXIkZDSRmWTRb98C2dEUmW2ISnGi9wKcod9bHMw1 EhSPHmi1kxSbRNxQK5wFb0DOVbZFzvu88pqhKjE/XNWKMEiAR/DcTLHAUFdEgCZ6lXRi KHSUQio1hgNYnmBtPG2d9WJhVAx/UqcfCwge57K5ZLipYqhFKdmwcq6me3XXQsPWjR/k 8NSQ== X-Gm-Message-State: ABy/qLbcHAXUs4wzeZw9sOoMo2LAQ4xX5L+Cs3eFbtJLuviSbAGAXLFz dyrI8E2MXm9xQvJIzZOSES/gwSqK9pE0eN4U3Sg= X-Google-Smtp-Source: APBJJlFec6wBrfaijsDOJBFfSnng/Y4M2cqRVJYxW6ciZW2HWtDGteDlth8AIaabG2oEV/kCcFpeBw== X-Received: by 2002:a05:6e02:f04:b0:348:936b:ae12 with SMTP id x4-20020a056e020f0400b00348936bae12mr473114ilj.11.1689810601036; Wed, 19 Jul 2023 16:50:01 -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.50.00 (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 03/83] buildman: Exit with the return code consistently Date: Wed, 19 Jul 2023 17:48:11 -0600 Message-ID: <20230719234953.796101-4-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 Test should return a suitable exit code when they fail. Fix this and tidy up the code a little. Signed-off-by: Simon Glass --- (no changes since v3) 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.487.g6d72f3e995-goog