{"thread":{"id":"31409","subject":"[PATCH 3/6] t4016-*.sh: Skip all tests rather than each test","startedAt":"2012-09-01T18:10:57Z","lastAt":"2012-09-01T18:10:57Z","messageCount":1,"participants":["Ramsay Jones"],"isPatch":true,"patchVersion":1,"patchTotal":6},"messages":[{"id":"198202","messageId":"50424FB1.2010100@ramsay1.demon.co.uk","threadId":"31409","inReplyTo":null,"subject":"[PATCH 3/6] t4016-*.sh: Skip all tests rather than each test","fromName":"Ramsay Jones","fromEmail":"ramsay@ramsay1.demon.co.uk","sentAt":"2012-09-01T18:10:57Z","receivedAt":"2012-09-01T18:10:57Z","isPatch":true,"sender":{"key":"ramsay@ramsayjones.plus.com","avatar":"https://avatars.githubusercontent.com/u/33702710?v=4"},"body":"\nEach test in this file is skipped if the TABS_IN_FILENAMES test\nprerequisite is set. Use the 'skip_all' facility at the head of\nthe file to skip all of the tests instead.\n\nSigned-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>\n---\n t/t4016-diff-quote.sh | 20 +++++++++-----------\n 1 file changed, 9 insertions(+), 11 deletions(-)\n\ndiff --git a/t/t4016-diff-quote.sh b/t/t4016-diff-quote.sh\nindex 97b8177..cd543ec 100755\n--- a/t/t4016-diff-quote.sh\n+++ b/t/t4016-diff-quote.sh\n@@ -13,14 +13,12 @@ P1='pathname\twith HT'\n P2='pathname with SP'\n P3='pathname\n with LF'\n-if : 2>/dev/null >\"$P1\" && test -f \"$P1\" && rm -f \"$P1\"\n-then\n-\ttest_set_prereq TABS_IN_FILENAMES\n-else\n-\tsay 'Your filesystem does not allow tabs in filenames'\n-fi\n+echo 2>/dev/null >\"$P1\" && test -f \"$P1\" && rm -f \"$P1\" || {\n+\tskip_all='Your filesystem does not allow tabs in filenames'\n+\ttest_done\n+}\n \n-test_expect_success TABS_IN_FILENAMES setup '\n+test_expect_success setup '\n \techo P0.0 >\"$P0.0\" &&\n \techo P0.1 >\"$P0.1\" &&\n \techo P0.2 >\"$P0.2\" &&\n@@ -40,7 +38,7 @@ test_expect_success TABS_IN_FILENAMES setup '\n \t:\n '\n \n-test_expect_success TABS_IN_FILENAMES 'setup expected files' '\n+test_expect_success 'setup expected files' '\n cat >expect <<\\EOF\n  rename pathname.1 => \"Rpathname\\twith HT.0\" (100%)\n  rename pathname.3 => \"Rpathname\\nwith LF.0\" (100%)\n@@ -52,12 +50,12 @@ cat >expect <<\\EOF\n EOF\n '\n \n-test_expect_success TABS_IN_FILENAMES 'git diff --summary -M HEAD' '\n+test_expect_success 'git diff --summary -M HEAD' '\n \tgit diff --summary -M HEAD >actual &&\n \ttest_cmp expect actual\n '\n \n-test_expect_success TABS_IN_FILENAMES 'git diff --numstat -M HEAD' '\n+test_expect_success 'git diff --numstat -M HEAD' '\n \tcat >expect <<-\\EOF &&\n \t0\t0\tpathname.1 => \"Rpathname\\twith HT.0\"\n \t0\t0\tpathname.3 => \"Rpathname\\nwith LF.0\"\n@@ -71,7 +69,7 @@ test_expect_success TABS_IN_FILENAMES 'git diff --numstat -M HEAD' '\n \ttest_cmp expect actual\n '\n \n-test_expect_success TABS_IN_FILENAMES 'git diff --stat -M HEAD' '\n+test_expect_success 'git diff --stat -M HEAD' '\n \tcat >expect <<-\\EOF &&\n \t pathname.1 => \"Rpathname\\twith HT.0\"            | 0\n \t pathname.3 => \"Rpathname\\nwith LF.0\"            | 0\n-- \n1.7.12\n"}]}