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 ABEAEC433EF for ; Tue, 26 Oct 2021 03:34:13 +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 2F38E60E74 for ; Tue, 26 Oct 2021 03:34:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2F38E60E74 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 D34E8835EA; Tue, 26 Oct 2021 05:33:07 +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="Vo42UCdF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8A61883556; Tue, 26 Oct 2021 05:31:32 +0200 (CEST) Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) (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 E3D1A83598 for ; Tue, 26 Oct 2021 05:31:19 +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-xd30.google.com with SMTP id o184so18353360iof.6 for ; Mon, 25 Oct 2021 20:31:19 -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=BLRgrMfCJGcIEiMJzU6/ufhT53cj27QiC4WHroFbvZw=; b=Vo42UCdFdFpfBm1CC439R7rfUH4DfxPVRiGqxudfnoNSGN9MhVD+AAcMvvc5ESuJea LfNZxZ4oI7XZyV3HrmfB8AoZ2ZhcNsfhmPMTVt6+ogK9cs2LgajjOP3kh5MoXEeS99Fg KNhALM0tbXxcHFN/JvPe4gBGF9i5I8aQus4nw= 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=BLRgrMfCJGcIEiMJzU6/ufhT53cj27QiC4WHroFbvZw=; b=28E+ZLPhlYxqHxoJdo2n04nOum0P+Co2JMvZIso0fbxhcftyQpGZP/ntmMJEG1uErk AJBIHElbgLAPTCQQqOjr9i2a43xPBz3uHs/g3V30d7I00rcwlAGLzMY38Jlc1KN5XP+3 RSUf/K9Wc6Z3tSKihgFRWtuSzKTHQrD9OIuF54uArrf9O6GG9Pt6TYBX84QOFsSCTy0/ GmAcPpMnvyU2wH6MkJD7iWaw+wToNZL4072Ms0QT/1bn7JlNObnFQ1hMogUAIdRyhx7s hTWC7AZx9kGNkkFvKByUbCQxu9hvuXYv7aGIOyh9zRSS9NqggAoVvNvhrJAUAlPm5mW1 uyUw== X-Gm-Message-State: AOAM532TvsY9I0K4KEd0EXC4bvejJpAqW7AHbwlHPlfzeQVp10+A5PUf z7YFLZsD8qx4BbVC2PYtYjrtzPHPiYVo3w== X-Google-Smtp-Source: ABdhPJytiv1rKleQ8qaktMjgg0ogA5KteE3c6LE+73gIeYi2UsuIbpkNlr3ao51ZFhVdLzNIQDkM/Q== X-Received: by 2002:a5d:9b0f:: with SMTP id y15mr12953915ion.5.1635219078497; Mon, 25 Oct 2021 20:31:18 -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 s10sm10127203ild.78.2021.10.25.20.31.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Oct 2021 20:31:18 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Ilias Apalodimas , Christian Melki , Bin Meng , Tom Rini , Heinrich Schuchardt , Simon Glass Subject: [PATCH v3 13/35] binman: Report an error if test files fail to compile Date: Mon, 25 Oct 2021 21:30:36 -0600 Message-Id: <20211026033058.430010-5-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.1079.g6e70778dc9-goog In-Reply-To: <20211026033058.430010-1-sjg@chromium.org> References: <20211026033058.430010-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.33.0.1079.g6e70778dc9-goog