From 0600c3a06dc7495a7649234fe6e1ff813abeac02 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 26 Sep 2008 15:44:43 +0200 Subject: [PATCH] Explain reason for skipping tests. --- ChangeLog | 5 +++++ tests/test-vc-list-files-cvs.sh | 3 ++- tests/test-vc-list-files-git.sh | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 88537c515..c0bf0abd2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-09-26 Bruno Haible + * 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 + * doc/posix-headers/sys_resource.texi: Reorder items. 2008-09-26 Jim Meyering diff --git a/tests/test-vc-list-files-cvs.sh b/tests/test-vc-list-files-cvs.sh index c87267cde..12c93664d 100755 --- a/tests/test-vc-list-files-cvs.sh +++ b/tests/test-vc-list-files-cvs.sh @@ -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 && diff --git a/tests/test-vc-list-files-git.sh b/tests/test-vc-list-files-git.sh index ac50971db..a42aec19a 100755 --- a/tests/test-vc-list-files-git.sh +++ b/tests/test-vc-list-files-git.sh @@ -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 && -- 2.11.0