changeset 17066:93874c90adcb

tests: test-vc-list-files-git.sh: skip if git is not available * tests/test-vc-list-files-git.sh: Skip this test when git is not available.
author Jim Meyering <meyering@redhat.com>
date Tue, 28 Aug 2012 13:49:37 +0200
parents e7db46543239
children 77ac576df82b
files ChangeLog tests/test-vc-list-files-git.sh
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-08-28  Jim Meyering  <meyering@redhat.com>
+
+	tests: test-vc-list-files-git.sh: skip if git is not available
+	* tests/test-vc-list-files-git.sh: Skip this test when git is
+	not available.
+
 2012-08-26  Bruno Haible  <bruno@clisp.org>
 
 	gnulib-tool: Remove no-op option --no-changelog.
--- a/tests/test-vc-list-files-git.sh
+++ b/tests/test-vc-list-files-git.sh
@@ -19,6 +19,8 @@
 : ${srcdir=.}
 . "$srcdir/init.sh"; path_prepend_ "$abs_aux_dir" .
 
+git --version || skip_ git required
+
 tmpdir=vc-git-$$
 GIT_DIR= GIT_WORK_TREE=; unset GIT_DIR GIT_WORK_TREE