avoid distracting test output when git or cvs is not fount
authorJim Meyering <meyering@redhat.com>
Thu, 15 May 2008 12:52:01 +0000 (14:52 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 15 May 2008 12:52:01 +0000 (14:52 +0200)
* tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
* tests/test-vc-list-files-git.sh: Likewise.

ChangeLog
tests/test-vc-list-files-cvs.sh
tests/test-vc-list-files-git.sh

index f563409..2e4d587 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-15  Jim Meyering  <meyering@redhat.com>
+
+       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  <ebb9@byu.net>
 
        Glibc finally accepted the memmem speedup code, bugzilla #5514.
index febd13b..c94932f 100755 (executable)
@@ -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 &&
index 5b8d94f..3a669dd 100755 (executable)
@@ -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 &&