From: Steve McIntyre Date: Sun, 18 Sep 2022 22:12:02 +0000 (+0100) Subject: tests: Explicitly unset SOURCE_DATE_EPOCH before running fs tests X-Git-Tag: grub-2.12-rc1~261 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d59cbd64e781173559b77fb53185ab71975fa2f;p=thirdparty%2Fgrub.git tests: Explicitly unset SOURCE_DATE_EPOCH before running fs tests 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 Reviewed-by: Daniel Kiper --- diff --git a/tests/util/grub-fs-tester.in b/tests/util/grub-fs-tester.in index 43f6175c3..7a48c4399 100644 --- a/tests/util/grub-fs-tester.in +++ b/tests/util/grub-fs-tester.in @@ -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"