summaryrefslogtreecommitdiff
path: root/t/python-am-path-iftrue.sh
diff options
context:
space:
mode:
authorAdam Sampson <ats@offog.org>2012-08-16 18:54:41 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-08-16 18:54:57 +0200
commit1be71fc819e07c596e4d570844385fcd01f4cef0 (patch)
tree2520fbcf8bf7b2492130e2d257b934d825b08c0a /t/python-am-path-iftrue.sh
parent2bb6c94e04b100143a596ca31e2f1b60590f934e (diff)
downloadautomake-1be71fc819e07c596e4d570844385fcd01f4cef0.tar.gz
tests: fix a timestamp race in python tests
Fixes automake bug#12210. * t/python-missing.sh: Call aclocal and autoconf with the "--force" option. We need this because, on fast machines, it's possible for 'mypy.m4' and 'aclocal.m4' to end up with the same timestamp as configure, so autoconf (without the "--force" options) wouldn't bother to rebuild it, and would just rerun the previous AM_PATH_PYTHON test, succeeding rather than failing as expected. * t/python-am-path-iftrue.sh: Likewise. Co-authored-by: Stefano Lattarini <stefano.lattarini@gmail.com> Copyright-paperwork-exempt: yes Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/python-am-path-iftrue.sh')
-rwxr-xr-xt/python-am-path-iftrue.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/t/python-am-path-iftrue.sh b/t/python-am-path-iftrue.sh
index 3c5201fe8..d7ba43689 100755
--- a/t/python-am-path-iftrue.sh
+++ b/t/python-am-path-iftrue.sh
@@ -45,8 +45,10 @@ cat > mypy.m4 << 'END'
AM_PATH_PYTHON([0.0], [$PYTHON -c 'print("%u:%u" % (1-1, 2**0))' > py.out])
END
-$ACLOCAL
-$AUTOCONF
+# The "--force" option here is truly needed to avoid potential timestamp
+# races. See automake bug#12210.
+$ACLOCAL --force
+$AUTOCONF --force
./configure
test x"$(cat py.out)" = x0:1