From d4da6e963719eb8a80be5195de9d80dd6751932a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 23 Jun 2023 17:51:43 -0700 Subject: [PATCH] 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. --- t/dist-no-built-sources.sh | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.47.3