automake-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[automake-commit] branch master updated: test: avoid sometime-race condi


From: Karl Berry
Subject: [automake-commit] branch master updated: test: avoid sometime-race condition for dist-no-built-sources test.
Date: Fri, 23 Jun 2023 20:51:53 -0400

This is an automated email from the git hooks/post-receive script.

karl pushed a commit to branch master
in repository automake.

View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=d4da6e963719eb8a80be5195de9d80dd6751932a

The following commit(s) were added to refs/heads/master by this push:
     new d4da6e963 test: avoid sometime-race condition for 
dist-no-built-sources test.
d4da6e963 is described below

commit d4da6e963719eb8a80be5195de9d80dd6751932a
Author: Karl Berry <karl@freefriends.org>
AuthorDate: Fri Jun 23 17:51:43 2023 -0700

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]