diff options
author | Elijah Newren <newren@gmail.com> | 2019-10-22 21:22:51 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-10-23 11:32:51 +0900 |
commit | da1e295e008ba016eef008385afb2c20c7fc3ff8 (patch) | |
tree | 1f66eae8cbfac4a0a378da5fb1cf2a91bbaa25ab /environment.c | |
parent | merge-recursive: fix merging a subdirectory into the root directory (diff) | |
download | tgif-da1e295e008ba016eef008385afb2c20c7fc3ff8.tar.xz |
t604[236]: do not run setup in separate tests
Transform the setup "tests" to setup functions, and have the actual
tests call the setup functions. Advantages:
* Should make life easier for people working with webby CI/PR builds
who have to abuse mice (and their own index finger as well) in
order to switch from viewing one testcase to another. Sounds
awful; hopefully this will improve things for them.
* Improves re-runnability: any failed test in any of these three
files can now be re-run in isolation, e.g.
./t6042* --ver --imm -x --run=21
whereas before it would require two tests to be specified to the
--run argument, the other needing to be picked out as the relevant
setup test from one or two tests before.
* Importantly, this still keeps the "setup" and "test" sections
somewhat separate to make it easier for readers to discern what is
just ancillary setup and what the intent of the test is.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'environment.c')
0 files changed, 0 insertions, 0 deletions