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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB8B4C433EF for ; Thu, 4 Nov 2021 03:11:42 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 589C360524 for ; Thu, 4 Nov 2021 03:11:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 589C360524 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 402A6836B9; Thu, 4 Nov 2021 04:10:42 +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="PX5Pupdq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 91AEB83675; Thu, 4 Nov 2021 04:10:21 +0100 (CET) Received: from mail-oo1-xc2d.google.com (mail-oo1-xc2d.google.com [IPv6:2607:f8b0:4864:20::c2d]) (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 821B18365C for ; Thu, 4 Nov 2021 04:09:59 +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-oo1-xc2d.google.com with SMTP id t7-20020a4aadc7000000b002b8733ab498so1484366oon.3 for ; Wed, 03 Nov 2021 20:09:59 -0700 (PDT) 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=NUisiUtuiSlYZv64X92xxiuXmdmPw77bd71b4pCBd6s=; b=PX5Pupdq/9K/pNIUWbHectPJ5u8/ifPwpMXOw7Edha1yg4G3c0IUmopRwBQ+9e0avV 4P+i4nLZmUNSbz7PfyKtIQqtmgVP/nK1Gfd585WQ66j9NjRQuWnSpQWhLdp8JNdfRTJR cjuXYvDdHwDDl8w7zm24daUqWDoMT9tLZGdtI= 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=NUisiUtuiSlYZv64X92xxiuXmdmPw77bd71b4pCBd6s=; b=vnbwfHY1C71wlxP3VlC4OEeixxHnEqSG6PNfiyxc8UiGyIDlARCCtf1BLiq4i/5K9X HMvoch1ADnexNRFqgoWW9e3KqpXwqgQ9AY8Vb1iBJXXwccbpjkWEbJIgt/gnKrMne6HO 5fHbMt666YtnQXzgx0dyDvYjGjLhZxGRkJNRerCcRTLwvBgWEPmRdW4gkRmSrmlS/8Qd VanEio44ZnqnXKXmoCSoTqkurXqYxoAbD0TfwVTfCHjPmjdGQErklEf7VKIgqrmpXdnq yKtN5xG9c28Kq6oc/vPPzN8tVAgFb6C0siSTfTRzXZalsHLEHWvs3+HG856poRO43Fgy TU+A== X-Gm-Message-State: AOAM532yiM6g7EiQxwe02YsXaoW0auwtKaKl4Ln+nQrvHKT1Zj3NAKpu AtSdcRXxU/a1929WJwHXoucBQdZL8qtXJQ== X-Google-Smtp-Source: ABdhPJzu6svB8pdjpI3zhVAlIxFkIRk5iD/QDUFSMoET1INy24Fy/xl6Cn2KaNkZScYWsgTL50iLNQ== X-Received: by 2002:a4a:ab04:: with SMTP id i4mr1720703oon.91.1635995397979; Wed, 03 Nov 2021 20:09:57 -0700 (PDT) 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 j25sm1050197oos.23.2021.11.03.20.09.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Nov 2021 20:09:57 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Ilias Apalodimas , Tom Rini , Christian Melki , Heinrich Schuchardt , Bin Meng , Simon Glass Subject: [PATCH v4 13/34] binman: Report an error if test files fail to compile Date: Wed, 3 Nov 2021 21:09:15 -0600 Message-Id: <20211104030936.2446706-5-sjg@chromium.org> X-Mailer: git-send-email 2.34.0.rc0.344.g81b53c2807-goog In-Reply-To: <20211104030936.2446706-1-sjg@chromium.org> References: <20211104030936.2446706-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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 any error from the 'make' command is silently swallowed by the test system. Fix this by showing it when detected. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/elf_test.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/binman/elf_test.py b/tools/binman/elf_test.py index 7a128018d9f..bcccd78c0a1 100644 --- a/tools/binman/elf_test.py +++ b/tools/binman/elf_test.py @@ -70,8 +70,12 @@ def BuildElfTestFiles(target_dir): # correctly. So drop any make flags here. if 'MAKEFLAGS' in os.environ: del os.environ['MAKEFLAGS'] - tools.Run('make', '-C', target_dir, '-f', - os.path.join(testdir, 'Makefile'), 'SRC=%s/' % testdir) + try: + tools.Run('make', '-C', target_dir, '-f', + os.path.join(testdir, 'Makefile'), 'SRC=%s/' % testdir) + except ValueError as e: + # The test system seems to suppress this in a strange way + print(e) class TestElf(unittest.TestCase): -- 2.34.0.rc0.344.g81b53c2807-goog