]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
test: avoid sometime-race condition for dist-no-built-sources test.
authorKarl Berry <karl@freefriends.org>
Sat, 24 Jun 2023 00:51:43 +0000 (17:51 -0700)
committerKarl Berry <karl@freefriends.org>
Sat, 24 Jun 2023 00:51:43 +0000 (17:51 -0700)
* t/dist-no-built-sources.sh: rm the dist .tar.gz and .tar
generated after inspecting, to avoid it being considered up to
date on the second time through the loop.

t/dist-no-built-sources.sh

index aa9d5f15cbcb7344a87f4e4101830247d92da967..dcaaa92fcc6fcd614cad1149a40c6486dcda939e 100644 (file)
@@ -70,4 +70,8 @@ EOF
     # built-sources build should have it
     test -e x.c
   fi
+  
+  # If the test runs fast enough, the make dist second time through
+  # won't do anything since the tarball will be considered up to date.
+  rm -f "${pkg_ver}".tar.gz "${pkg_ver}".tar
 done