t7800: improve test descriptions with empty arguments
commitac45f68866fbdbe14384d1b8964824ffac9d1e6b
authorPatrick Steinhardt <ps@pks.im>
Fri, 22 Mar 2024 02:23:36 +0000 (22 03:23 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Mar 2024 14:36:34 +0000 (22 07:36 -0700)
tree7a98f42cc8afde251ce36b0ff371aa85dd742362
parenteb84c8b6cef15fcd048711afce46ce40dc5c43f5
t7800: improve test descriptions with empty arguments

Some of the tests in t7800 are executed repeatedly in a loop with
different arguments. To distinguish these tests, the value of that
variable is rendered into the test title. But given that one of the
values is the empty string, it results in a somewhat awkward test name:

    difftool  ignores exit code

Improve this by printing "without options" in case the value is empty.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7800-difftool.sh