From 987a17ff1c086d1eaa804ab3e33da9472dbe4b3e Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 21 Mar 2024 12:42:19 +0100 Subject: [PATCH] gnulib-tool-tests: Fix a failure of test-emacs-1.sh. --- gnulib-tool-tests/init.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnulib-tool-tests/init.sh b/gnulib-tool-tests/init.sh index 28822616..7d563762 100644 --- a/gnulib-tool-tests/init.sh +++ b/gnulib-tool-tests/init.sh @@ -128,6 +128,8 @@ do_import_test () (cd "$1" && tar cf - .) | (cd $tmp-result && tar xf -) (cd $tmp-result/"$2" && $GNULIB_SRCDIR/gnulib-tool --gnulib-dir="$gnulib_dir" $3) >$tmp-out 2>$tmp-err rc=$? + # Remove autom4te.cache directory, since it may depend on the Autoconf version or M4 version. + rm -rf $tmp-result/"$2"/autom4te.cache if test $rc != 0; then cat $tmp-err >&2 echo "FAIL: gnulib-tool exited with code $rc." >&2 -- 2.39.5