Merge branch 'ab/lib-subtest'
commitcf006037bf93589053a747a482e2f7c77cf0967e
authorJunio C Hamano <gitster@pobox.com>
Wed, 13 Oct 2021 22:15:57 +0000 (13 15:15 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Oct 2021 22:15:57 +0000 (13 15:15 -0700)
treeb5add9e606db8433a826d805536014ebb0eb9fbb
parenta7c2daa06d6f7d8fd13a1d72f23741acbaeba522
parent2e54907e83febc637484255491c6a65b004fd648
Merge branch 'ab/lib-subtest'

Updates to the tests in t0000 to test the test framework.

* ab/lib-subtest:
  test-lib tests: get rid of copy/pasted mock test code
  test-lib tests: assert 1 exit code, not non-zero
  test-lib tests: refactor common part of check_sub_test_lib_test*()
  test-lib tests: avoid subshell for "test_cmp" for readability
  test-lib tests: don't provide a description for the sub-tests
  test-lib tests: split up "write and run" into two functions
  test-lib tests: move "run_sub_test" to a new lib-subtest.sh
t/t0000-basic.sh