From: Ross Burton Date: Thu, 4 Dec 2025 16:18:17 +0000 (+0000) Subject: binutils-testsuite: unset SOURCE_DATE_EPOCH when running the tests X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ea5d2c5aadb1852aff23616e973b382df44c8d0;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git binutils-testsuite: unset SOURCE_DATE_EPOCH when running the tests The replacing_non_deterministic_member() test in ar.exp explicitly needs SOURCE_DATE_EPOCH to be unset: # This test expects SOURCE_DATE_EPOCH to not be set in the environment I hope that the test harness could just unset this in advance of running the tests, but until this is upstreamed we can unset it. This fixes the test: ptestresult.binutils.replacing non-deterministic member (wrong size, expected: 920) Signed-off-by: Ross Burton Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb b/meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb index fe6b8c6f40..4e393c4e4d 100644 --- a/meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb +++ b/meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb @@ -75,6 +75,10 @@ do_check[prefuncs] += "check_prepare" do_check[nostamp] = "1" do_check() { export LC_ALL=C + + # Needs to be unset for binutils/testsuite/bintils-all/ar.exp:replacing_non_deterministic_member() to pass. + unset SOURCE_DATE_EPOCH + for i in ${CHECK_TARGETS}; do (cd ${B}/$i/testsuite; runtest \ --tool $i \