Re: [PATCH v3 3/4] test-lib: make $GIT_BUILD_DIR an absolute path
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 24, 2022, 20:05 UTC
- Message-ID
- <xmqqa6egkp2y.fsf@gitster.g>
- In-Reply-To
- <220224.86bkywaakn.gmgdl@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 8 quoted lines
> So you're OK with the assumption/method being used here, but would
> prefer if we also added an explicit check/"exit 1"? E.g.:
>
> if test "$TEST_DIRECTORY" = "${TEST_DIRECTORY%/t}"
> then
> echo "PANIC: Running in a $TEST_DIRECTORY that doesn't end in '/t'?" >&2
> exit 1
> fiExactly.