summaryrefslogtreecommitdiff
path: root/t/t1309-early-config.sh
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2019-11-26 20:46:07 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-11-27 11:32:07 +0900
commit213dabf49dc53ae5808efbdebf0cd2bfc2c1bfa8 (patch)
tree81dc603474b3678c33834754529f1df186b7c89e /t/t1309-early-config.sh
parentt1400: use test_must_be_empty (diff)
downloadtgif-213dabf49dc53ae5808efbdebf0cd2bfc2c1bfa8.tar.xz
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>
Diffstat (limited to 't/t1309-early-config.sh')
-rwxr-xr-xt/t1309-early-config.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1309-early-config.sh b/t/t1309-early-config.sh
index 3a0de0ddaa..ebb8e1aecb 100755
--- a/t/t1309-early-config.sh
+++ b/t/t1309-early-config.sh
@@ -29,7 +29,7 @@ test_expect_success 'ceiling' '
cd sub &&
test-tool config read_early_config early.config
) >output &&
- test -z "$(cat output)"
+ test_must_be_empty output
'
test_expect_success 'ceiling #2' '