summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-05-27 13:14:38 -0700
committerJunio C Hamano <gitster@pobox.com>2015-05-27 13:14:38 -0700
commit77bd3ea9f54f1584147b594abc04c26ca516d987 (patch)
tree0ccf888f68194e3b3c1b8a017ca42a5e1ec1d212
parentfae46aa0ae5318bbb20f0ef871721bf49e292cea (diff)
parentfa73a582b5e7e01184171dc310c7ee0bd9bb2721 (diff)
downloadgit-77bd3ea9f54f1584147b594abc04c26ca516d987.tar.gz
Merge branch 'nd/untracked-cache'
* nd/untracked-cache: t7063: hide stderr from setup inside prereq
-rwxr-xr-xt/t7063-status-untracked-cache.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/t/t7063-status-untracked-cache.sh b/t/t7063-status-untracked-cache.sh
index 2b2ffd7d6b..bd4806c12a 100755
--- a/t/t7063-status-untracked-cache.sh
+++ b/t/t7063-status-untracked-cache.sh
@@ -8,10 +8,14 @@ avoid_racy() {
sleep 1
}
-git update-index --untracked-cache
# It's fine if git update-index returns an error code other than one,
# it'll be caught in the first test.
-if test $? -eq 1; then
+test_lazy_prereq UNTRACKED_CACHE '
+ { git update-index --untracked-cache; ret=$?; } &&
+ test $ret -ne 1
+'
+
+if ! test_have_prereq UNTRACKED_CACHE; then
skip_all='This system does not support untracked cache'
test_done
fi