test: use test_must_be_empty F instead of test -z $(cat F)
commit213dabf49dc53ae5808efbdebf0cd2bfc2c1bfa8
authorRené Scharfe <l.s.r@web.de>
Tue, 26 Nov 2019 19:46:07 +0000 (26 20:46 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Nov 2019 02:32:07 +0000 (27 11:32 +0900)
tree81dc603474b3678c33834754529f1df186b7c89e
parentc93a5aaec859f93ff24277269e2fdef00c9c45e6
test: use test_must_be_empty F instead of test -z $(cat F)

Use test_must_be_empty instead of reading the file and comparing its
contents to an empty string.  That's more efficient, as the function
only needs built-in meta-data only check in the usual case, and provides
nicer debug output otherwise.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1309-early-config.sh
t/t1506-rev-parse-diagnosis.sh
t/t6019-rev-list-ancestry-path.sh