automake-commit
[Top][All Lists]
Advanced

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

[Automake-commit] [SCM] GNU Automake branch, master, updated. v1.11-1998


From: Stefano Lattarini
Subject: [Automake-commit] [SCM] GNU Automake branch, master, updated. v1.11-1998-g66873b5
Date: Wed, 22 Feb 2012 12:37:23 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Automake".

http://git.sv.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=66873b596119fc691f1b1c05aa6d09f2ff1b5849

The branch, master has been updated
       via  66873b596119fc691f1b1c05aa6d09f2ff1b5849 (commit)
      from  e5e6fa03884708e2a48d081a460401c25badfc20 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 66873b596119fc691f1b1c05aa6d09f2ff1b5849
Author: Stefano Lattarini <address@hidden>
Date:   Wed Feb 22 12:30:38 2012 +0100

    tests: avoid spurious failures under "make distcheck"
    
    * tests/tap-setup.sh: Pass also '-f' option to 'cp' invocations,
    so that files that have already been copied in without write
    permissions will still be overwritten where needed, instead of
    causing a spurious testsuite failure.  Issue seen when the
    testsuite is run under "distcheck".
    * tests/defs (get_shell_script): Remove target file before
    overwriting it, for the same reason.  Rework code flow a bit
    since we are at it.

-----------------------------------------------------------------------

Summary of changes:
 tests/defs         |    8 +++++---
 tests/tap-setup.sh |    2 +-
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/tests/defs b/tests/defs
index 98bc8e1..fd0a8ad 100644
--- a/tests/defs
+++ b/tests/defs
@@ -612,11 +612,13 @@ sed_unindent_prog="" # Avoid interferences from the 
environment.
 # of /bin/sh.
 get_shell_script ()
 {
+  test ! -f "$1" || rm -f "$1" || return 99
   if test x"$am_test_prefer_config_shell" = x"yes"; then
-    sed "1s|#!.*|#! $SHELL|" "$am_scriptdir/$1" > "$1"
-    chmod a+x "$1"
+    sed "1s|#!.*|#! $SHELL|" "$am_scriptdir/$1" > "$1" \
+     && chmod a+x "$1" \
+     || return 99
   else
-    cp "$am_scriptdir/$1" .
+    cp -f "$am_scriptdir/$1" . || return 99
   fi
   sed 10q "$1" # For debugging.
 }
diff --git a/tests/tap-setup.sh b/tests/tap-setup.sh
index ee9d814..6b69a53 100755
--- a/tests/tap-setup.sh
+++ b/tests/tap-setup.sh
@@ -28,7 +28,7 @@ test -f ../defs-static && test -f ../defs \
 test ! -f Makefile.am || mv Makefile.am Makefile.am~ \
   || fatal_ "failed to save Makefile.am"
 
-test -d ../tap-common-setup.dir && cp -Rp ../tap-common-setup.dir/* . \
+test -d ../tap-common-setup.dir && cp -fpR ../tap-common-setup.dir/* . \
   || fatal_ "couldn't get precomputed data files"
 
 fetch_tap_driver


hooks/post-receive
-- 
GNU Automake



reply via email to

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