Re: [RFC PATCH 3/5] maintenance: use packaged systemd units
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 19, 2024, 18:19 UTC
- Message-ID
- <xmqq8r2eqe2w.fsf@gitster.g>
- In-Reply-To
- <CAPig+cSWLoRdTgrrU2SBswnKr82L_BPCKtaP6atMyZVDAU=hpw@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
Show 5 quoted lines
> You may be able to use "$TEST_DIRECTORY/.." to reference files in the > source tree, though the documentation in t/test-lib.sh doesn't seem to > state explicitly that this is intended or supported use. However, a > few existing tests (t1021, t3000, t4023) already access files in the > source tree in this fashion, so there is precedent.
I think the following from t/test-lib.sh should give us sufficient assurance.
# The TEST_DIRECTORY will always be the path to the "t" # directory in the git.git checkout. This is overridden by # e.g. t/lib-subtest.sh, but only because its $(pwd) is # different. Those tests still set "$TEST_DIRECTORY" to the # same path.
Everything you said in your review is correct. Thanks.