Explain reason for skipping tests.
authorBruno Haible <bruno@clisp.org>
Fri, 26 Sep 2008 13:44:43 +0000 (15:44 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 26 Sep 2008 13:44:43 +0000 (15:44 +0200)
ChangeLog
tests/test-vc-list-files-cvs.sh
tests/test-vc-list-files-git.sh

index 88537c5151afb6916165f0cba45f5bba897f9fec..c0bf0abd242240a1403709a241169aaa7c6374f9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-09-26  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
+       * tests/test-vc-list-files-cvs.sh: Likewise.
+
 2008-09-26  Bruno Haible  <bruno@clisp.org>
 
        * doc/posix-headers/sys_resource.texi: Reorder items.
index c87267cde358c1a7e85e65a464e91176e35486c5..12c93664d2141c37b462de60f81c0dc8da439c6a 100755 (executable)
@@ -45,7 +45,8 @@ for i in with-cvsu without; do
   mkdir $tmpdir && cd $tmpdir &&
     # without cvs, skip the test
     # The double use of 'exit' is needed for the reference to $? inside the trap.
-    { ( cvs -Q -d "$repo" init ) > /dev/null 2>&1 || { (exit 77); exit 77; }; } &&
+    { ( cvs -Q -d "$repo" init ) > /dev/null 2>&1 \
+      || { echo "Skipping test: cvs not found in PATH"; (exit 77); exit 77; }; } &&
     mkdir w && cd w &&
     mkdir d &&
     touch d/a b c &&
index ac50971db19580768a2241db33e73b18b820b718..a42aec19a4259273315645f457bce4f017633dcc 100755 (executable)
@@ -32,7 +32,8 @@ fail=1
 mkdir $tmpdir && cd $tmpdir &&
   # without git, skip the test
   # The double use of 'exit' is needed for the reference to $? inside the trap.
-  { ( git init -q ) > /dev/null 2>&1 || { (exit 77); exit 77; }; } &&
+  { ( git init -q ) > /dev/null 2>&1 \
+    || { echo "Skipping test: git not found in PATH"; (exit 77); exit 77; }; } &&
   mkdir d &&
   touch d/a b c &&
   git add . > /dev/null &&