Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1oa2XT-0001ML-Cz for mharc-grub-devel@gnu.org; Sun, 18 Sep 2022 18:13:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oa2XR-0001M6-98 for grub-devel@gnu.org; Sun, 18 Sep 2022 18:13:21 -0400 Received: from cheddar.halon.org.uk ([93.93.131.118]:59264) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oa2XP-0003Ue-7p for grub-devel@gnu.org; Sun, 18 Sep 2022 18:13:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=einval.com; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:From:Reply-To:Subject:Content-Type:Content-ID:Content-Description: In-Reply-To:References:X-Debbugs-Cc; bh=GwrpDwbApt7wyJG8uyYG/HMUaGZ4aTYVpGwRFAcHL18=; b=SfGaPz8t/2KL8H0eldDKp0pASM XdBVpYuPYKQV485i1cSwG+9etnbcHnjTyCRUDMDhNMK8q36Cgv6XG4JP5G8VsThw4zfEleYnSK06U W0P3/8O9yNEdbOAjuzeNbJFiSHBJx7QjVwehFuAm/oHec13MSF3AhT4lnYKuPZtDbntS87WZFX9Mo tjJSuAZqHXpfWZLHW4KIXaEKZDYCqI/M8v3QUq3sv8degnFqlrEefUryfTbLY3apMog6Y6P4UuqrO 0CpvY/Kdi/mAmKixTXhJMGg/T6pk00ioA/CfAVCEp2NMFQRkK6kOJhm7AOKPFVgs8d85IClqjLYUB igtydf/w==; Received: from bsmtp by cheddar.halon.org.uk with local-bsmtp (Exim 4.92) (envelope-from ) id 1oa2XG-0007jv-2f; Sun, 18 Sep 2022 23:13:10 +0100 Received: from steve by tack.einval.org with local (Exim 4.94.2) (envelope-from ) id 1oa2WS-000cKH-3E; Sun, 18 Sep 2022 23:12:20 +0100 From: Steve McIntyre To: grub-devel@gnu.org Cc: Steve McIntyre Subject: [PATCH] Explicitly unset SOURCE_DATE_EPOCH before running fs tests Date: Sun, 18 Sep 2022 23:12:02 +0100 Message-Id: <20220918221202.145764-1-steve@einval.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=93.93.131.118; envelope-from=steve@einval.com; helo=cheddar.halon.org.uk X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2022 22:13:21 -0000 In some filesystem utils like mksquashfs, they will silently change behaviour and cause timestamps to unexpectedly change. Build environments like Debian's set SOURCE_DATE_EPOCH in the environment, so remove it. Reproducible builds are good and useful for shipped artifacts, but this causes build-time tests to fail. Signed-off-by: Steve McIntyre --- tests/util/grub-fs-tester.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/util/grub-fs-tester.in b/tests/util/grub-fs-tester.in index 43f6175c3..6d70967e6 100644 --- a/tests/util/grub-fs-tester.in +++ b/tests/util/grub-fs-tester.in @@ -5,6 +5,9 @@ export BLKID_FILE=/dev/null fs="$1" +# We can't have this set, or filesystem tests will fail +unset SOURCE_DATE_EPOCH + GRUBFSTEST="@builddir@/grub-fstest" tempdir=`mktemp -d "${TMPDIR:-/tmp}/${0##*/}.$(date '+%Y%m%d%H%M%S%N').${fs}.XXX"` || -- 2.30.2