Re: [PATCH] t1500-rev-parse: rewrite each test to run in isolation
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 13, 2016, 02:03 UTC
- Message-ID
- <xmqqk2k2l0yx.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <1460200767-32864-2-git-send-email-rappazzo@gmail.com>
Michael Rappazzo <rappazzo@gmail.com> writes:
Show 10 quoted lines
> t1500-rev-parse has many tests which change directories and leak > environment variables. This makes it difficult to add new tests without > minding the environment variables and current directory. > > Each test is now setup, executed, and cleaned up without leaving anything > behind. Tests which have textual expectations have been converted to use > test_cmp (which will show a diff when the test is run with --verbose). > > Signed-off-by: Michael Rappazzo <rappazzo@gmail.com> > ---
Applying this patch on top of sg/completion-updates topic makes the tests much more readable. Given that sg/completion-updates topic is planned to be rerolled ($gmane/287839), I think it would be better to do this as a preparatory clean-up patch before it makes the tests uglier by doing "add --absolute-git-dir" patch in the middle.
Gábor, what do you think?