{"thread":{"id":"31407","subject":"[PATCH 2/6] t3902-*.sh: Skip all tests rather than each test","startedAt":"2012-09-01T18:10:01Z","lastAt":"2012-09-01T18:10:01Z","messageCount":1,"participants":["Ramsay Jones"],"isPatch":true,"patchVersion":1,"patchTotal":6},"messages":[{"id":"198200","messageId":"50424F79.2020707@ramsay1.demon.co.uk","threadId":"31407","inReplyTo":null,"subject":"[PATCH 2/6] t3902-*.sh: Skip all tests rather than each test","fromName":"Ramsay Jones","fromEmail":"ramsay@ramsay1.demon.co.uk","sentAt":"2012-09-01T18:10:01Z","receivedAt":"2012-09-01T18:10:01Z","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/t3902-quoted.sh | 31 +++++++++++++++----------------\n 1 file changed, 15 insertions(+), 16 deletions(-)\n\ndiff --git a/t/t3902-quoted.sh b/t/t3902-quoted.sh\nindex 534ee08..892f567 100755\n--- a/t/t3902-quoted.sh\n+++ b/t/t3902-quoted.sh\n@@ -16,9 +16,8 @@ echo foo 2>/dev/null > \"Name and an${HT}HT\"\n if ! test -f \"Name and an${HT}HT\"\n then\n \t# FAT/NTFS does not allow tabs in filenames\n-\tsay 'Your filesystem does not allow tabs in filenames'\n-else\n-\ttest_set_prereq TABS_IN_FILENAMES\n+\tskip_all='Your filesystem does not allow tabs in filenames'\n+\ttest_done\n fi\n \n for_each_name () {\n@@ -31,7 +30,7 @@ for_each_name () {\n \tdone\n }\n \n-test_expect_success TABS_IN_FILENAMES 'setup' '\n+test_expect_success 'setup' '\n \n \tmkdir \"$FN\" &&\n \tfor_each_name \"echo initial >\\\"\\$name\\\"\" &&\n@@ -45,7 +44,7 @@ test_expect_success TABS_IN_FILENAMES 'setup' '\n \n '\n \n-test_expect_success TABS_IN_FILENAMES 'setup expected files' '\n+test_expect_success 'setup expected files' '\n cat >expect.quoted <<\\EOF &&\n Name\n \"Name and a\\nLF\"\n@@ -75,74 +74,74 @@ With SP in it\n EOF\n '\n \n-test_expect_success TABS_IN_FILENAMES 'check fully quoted output from ls-files' '\n+test_expect_success 'check fully quoted output from ls-files' '\n \n \tgit ls-files >current && test_cmp expect.quoted current\n \n '\n \n-test_expect_success TABS_IN_FILENAMES 'check fully quoted output from diff-files' '\n+test_expect_success 'check fully quoted output from diff-files' '\n \n \tgit diff --name-only >current &&\n \ttest_cmp expect.quoted current\n \n '\n \n-test_expect_success TABS_IN_FILENAMES 'check fully quoted output from diff-index' '\n+test_expect_success 'check fully quoted output from diff-index' '\n \n \tgit diff --name-only HEAD >current &&\n \ttest_cmp expect.quoted current\n \n '\n \n-test_expect_success TABS_IN_FILENAMES 'check fully quoted output from diff-tree' '\n+test_expect_success 'check fully quoted output from diff-tree' '\n \n \tgit diff --name-only HEAD^ HEAD >current &&\n \ttest_cmp expect.quoted current\n \n '\n \n-test_expect_success TABS_IN_FILENAMES 'check fully quoted output from ls-tree' '\n+test_expect_success 'check fully quoted output from ls-tree' '\n \n \tgit ls-tree --name-only -r HEAD >current &&\n \ttest_cmp expect.quoted current\n \n '\n \n-test_expect_success TABS_IN_FILENAMES 'setting core.quotepath' '\n+test_expect_success 'setting core.quotepath' '\n \n \tgit config --bool core.quotepath false\n \n '\n \n-test_expect_success TABS_IN_FILENAMES 'check fully quoted output from ls-files' '\n+test_expect_success 'check fully quoted output from ls-files' '\n \n \tgit ls-files >current && test_cmp expect.raw current\n \n '\n \n-test_expect_success TABS_IN_FILENAMES 'check fully quoted output from diff-files' '\n+test_expect_success 'check fully quoted output from diff-files' '\n \n \tgit diff --name-only >current &&\n \ttest_cmp expect.raw current\n \n '\n \n-test_expect_success TABS_IN_FILENAMES 'check fully quoted output from diff-index' '\n+test_expect_success 'check fully quoted output from diff-index' '\n \n \tgit diff --name-only HEAD >current &&\n \ttest_cmp expect.raw current\n \n '\n \n-test_expect_success TABS_IN_FILENAMES 'check fully quoted output from diff-tree' '\n+test_expect_success 'check fully quoted output from diff-tree' '\n \n \tgit diff --name-only HEAD^ HEAD >current &&\n \ttest_cmp expect.raw current\n \n '\n \n-test_expect_success TABS_IN_FILENAMES 'check fully quoted output from ls-tree' '\n+test_expect_success 'check fully quoted output from ls-tree' '\n \n \tgit ls-tree --name-only -r HEAD >current &&\n \ttest_cmp expect.raw current\n-- \n1.7.12\n"}]}