From: Bruno Haible Date: Thu, 21 Mar 2024 11:42:19 +0000 (+0100) Subject: gnulib-tool-tests: Fix a failure of test-emacs-1.sh. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=987a17ff1c086d1eaa804ab3e33da9472dbe4b3e;p=gnulib%2Fmaint-tools.git gnulib-tool-tests: Fix a failure of test-emacs-1.sh. --- 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