t4014: clean up format.thread config after each test

The threading tests turn on format.thread, but never clean up after themselves, meaning that later tests will also have format.thread set. This is more annoying than most leftover config, too, because not only does it impact the results of other tests, but it does so non-deterministically. Threading requires the generation of message-ids, which incorporate the current time, meaning a slow-running test script may generate different results from run to run. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Sep 19, 2011 at 15:15 UTC e810715528eda01914d2df82628872e8df9929d5
1 file changed +4 -4
t/t4014-format-patch.sh
+4 -4
@@ -445,22 +445,22 @@ test_expect_success 'thread deep cover-letter in-reply-to' '
445 '
446
447 test_expect_success 'thread via config' '
448 - git config format.thread true &&
448 + test_config format.thread true &&
449 check_threading expect.thread master
450 '
451
452 test_expect_success 'thread deep via config' '
453 - git config format.thread deep &&
453 + test_config format.thread deep &&
454 check_threading expect.deep master
455 '
456
457 test_expect_success 'thread config + override' '
458 - git config format.thread deep &&
458 + test_config format.thread deep &&
459 check_threading expect.thread --thread master
460 '
461
462 test_expect_success 'thread config + --no-thread' '
463 - git config format.thread deep &&
463 + test_config format.thread deep &&
464 check_threading expect.no-threading --no-thread master
465 '
466