]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
tests: Explicitly unset SOURCE_DATE_EPOCH before running fs tests
authorSteve McIntyre <steve@einval.com>
Sun, 18 Sep 2022 22:12:02 +0000 (23:12 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 4 Oct 2022 14:14:41 +0000 (16:14 +0200)
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 <steve@einval.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
tests/util/grub-fs-tester.in

index 43f6175c3b892d7f4506e1a01c1f94177f02a19c..7a48c4399cdb04c2739862bb0ee24edb0c00c8fc 100644 (file)
@@ -3,6 +3,9 @@
 set -e
 export BLKID_FILE=/dev/null
 
+# We can't have this set, or filesystem tests will fail.
+unset SOURCE_DATE_EPOCH
+
 fs="$1"
 
 GRUBFSTEST="@builddir@/grub-fstest"