summaryrefslogtreecommitdiff
path: root/t/t1509-root-worktree.sh
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2010-06-24 17:44:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-06-25 17:08:20 (GMT)
commitfadb5156e485e9d25c89d4b4f96c2d4fe6db6187 (patch)
treeeb89a099061fc53a086a4a305bc517338b34f9b9 /t/t1509-root-worktree.sh
parent57e1538ac9b352c7a43ca63d8206c5393e04fab3 (diff)
downloadgit-fadb5156e485e9d25c89d4b4f96c2d4fe6db6187.zip
git-fadb5156e485e9d25c89d4b4f96c2d4fe6db6187.tar.gz
git-fadb5156e485e9d25c89d4b4f96c2d4fe6db6187.tar.bz2
tests: Skip tests in a way that makes sense under TAP
SKIP messages are now part of the TAP plan. A TAP harness now knows why a particular test was skipped and can report that information. The non-TAP harness built into Git's test-lib did nothing special with these messages, and is unaffected by these changes. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1509-root-worktree.sh')
-rwxr-xr-xt/t1509-root-worktree.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/t1509-root-worktree.sh b/t/t1509-root-worktree.sh
index 5322a3b..7f60fd0 100755
--- a/t/t1509-root-worktree.sh
+++ b/t/t1509-root-worktree.sh
@@ -99,17 +99,17 @@ test_foobar_foobar() {
}
if ! test_have_prereq POSIXPERM || ! [ -w / ]; then
- say "Dangerous test skipped. Read this test if you want to execute it"
+ skip_all="Dangerous test skipped. Read this test if you want to execute it"
test_done
fi
if [ "$IKNOWWHATIAMDOING" != "YES" ]; then
- say "You must set env var IKNOWWHATIAMDOING=YES in order to run this test"
+ skip_all="You must set env var IKNOWWHATIAMDOING=YES in order to run this test"
test_done
fi
if [ "$UID" = 0 ]; then
- say "No you can't run this with root"
+ skip_all="No you can't run this with root"
test_done
fi