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 851D0C433EF for ; Sat, 25 Sep 2021 00:35:57 +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 08D4161212 for ; Sat, 25 Sep 2021 00:35:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 08D4161212 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 365728354F; Sat, 25 Sep 2021 02:35:04 +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="fhZUpSTx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9877F8350C; Sat, 25 Sep 2021 02:32:11 +0200 (CEST) Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) (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 D85AE834D2 for ; Sat, 25 Sep 2021 02:31:20 +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-ot1-x333.google.com with SMTP id j11-20020a9d190b000000b00546fac94456so15473719ota.6 for ; Fri, 24 Sep 2021 17:31:20 -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=PQ5QyOkEdSce79XxSzftP3YSkJPnRO1rI7QkUI3Bh80=; b=fhZUpSTxfNUGrSn7VOBZHXHUTX7WM3iQ5BwWkFO5GsSB8sPSI+Rbgd5BFVgSA7yJuA HCCZanrsOI4o9vEYPrWS2tvU2vx279JOuPQT7Q/VAVBj1ZUY3iuvjo8QRHW0ws3eoON/ jF4EBKvM/h4tMuSsmUGPud7HwHx346vdVv5Ms= 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=PQ5QyOkEdSce79XxSzftP3YSkJPnRO1rI7QkUI3Bh80=; b=rNOvFusDV/FCbVGOSmcDgjnmTVkeVaepMQcq8hFAvT0X0VErU5LGh/G5eCyY6sP75Z 2smw81TzVx6S/FKFwPU8LXTeGhm9qcJBZDQ1byOiJzetTO98wAzJV4TWn5CTSaKJcAdI RpQrA6Sbgn+4hDTQ+dieomiW9zoWlnnDMMT+O/Q5EM4ahVb2dLcr2bXJZbzQgWpyi2Zv /h1tHrBMd1DHhWdC5iDm0A2z6jezlhygK3Lj4nMj/IgmLntHEvsgOTgaDFWn7OuZTgA6 km2qp0mqk8nxcpSM00JCv8MYJDvinTfMtitmeOE3PHrOIt/QrVBfItYtNauJv58A76M6 ktiQ== X-Gm-Message-State: AOAM530dLtvcnmPLMr4k/bHvHAKLc3Mfzn6qtHHA0/oO9nxhfHqlt1h1 ee6zuEGpmEDbnoQ4Xwb1qKGU0YdJb+7ngA== X-Google-Smtp-Source: ABdhPJzHySOtK+fqCuUW862bW9fXwPe/TbDElxtU7sf8km92QW8Cs7e16Ic5tNymgLotirFL/KE3wA== X-Received: by 2002:a9d:289:: with SMTP id 9mr6203886otl.213.1632529878853; Fri, 24 Sep 2021 17: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 y83sm2491462oia.47.2021.09.24.17.31.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 17:31:18 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Bin Meng , Christian Melki , Tom Rini , Ilias Apalodimas , Simon Glass Subject: [PATCH v2 19/39] binman: Report an error if test files fail to compile Date: Fri, 24 Sep 2021 18:30:35 -0600 Message-Id: <20210925003055.759305-7-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.685.g46640cef36-goog In-Reply-To: <20210925003055.759305-1-sjg@chromium.org> References: <20210925003055.759305-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.685.g46640cef36-goog