From: Karl Berry Date: Sat, 24 Jun 2023 00:51:43 +0000 (-0700) Subject: test: avoid sometime-race condition for dist-no-built-sources test. X-Git-Tag: v1.16i~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d4da6e963719eb8a80be5195de9d80dd6751932a;p=thirdparty%2Fautomake.git test: avoid sometime-race condition for dist-no-built-sources test. * 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. --- diff --git a/t/dist-no-built-sources.sh b/t/dist-no-built-sources.sh index aa9d5f15c..dcaaa92fc 100644 --- a/t/dist-no-built-sources.sh +++ b/t/dist-no-built-sources.sh @@ -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