From f1fcb8539c9d1c7d9cefb25ce5c07a099ea1f148 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 15 May 2008 14:52:01 +0200 Subject: [PATCH] avoid distracting test output when git or cvs is not fount * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output. * tests/test-vc-list-files-git.sh: Likewise. --- ChangeLog | 6 ++++++ tests/test-vc-list-files-cvs.sh | 2 +- tests/test-vc-list-files-git.sh | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f563409f9..2e4d58723 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-15 Jim Meyering + + avoid distracting test output when git or cvs is not fount + * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output. + * tests/test-vc-list-files-git.sh: Likewise. + 2008-05-15 Eric Blake Glibc finally accepted the memmem speedup code, bugzilla #5514. diff --git a/tests/test-vc-list-files-cvs.sh b/tests/test-vc-list-files-cvs.sh index febd13b43..c94932fc2 100755 --- a/tests/test-vc-list-files-cvs.sh +++ b/tests/test-vc-list-files-cvs.sh @@ -44,7 +44,7 @@ for i in with-cvsu without; do ok=0 mkdir $tmpdir && cd $tmpdir && # without cvs, skip the test - { cvs -Q -d "$repo" init || exit 77; } && + { ( cvs -Q -d "$repo" init ) > /dev/null 2>&1 || 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 5b8d94fb7..3a669dd0e 100755 --- a/tests/test-vc-list-files-git.sh +++ b/tests/test-vc-list-files-git.sh @@ -31,7 +31,7 @@ trap '(exit $?); exit $?' 1 2 13 15 fail=1 mkdir $tmpdir && cd $tmpdir && # without git, skip the test - { git init -q || exit 77; } && + { ( git init -q ) > /dev/null 2>&1 || exit 77; } && mkdir d && touch d/a b c && git add . > /dev/null && -- 2.11.0