t2027: use test_must_be_empty

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Nguyễn Thái Ngọc Duy 2019-06-20 16:55:20 +07:00 committed by Junio C Hamano
parent 4e43b7ff1e
commit bcba406532

View File

@ -90,9 +90,8 @@ test_expect_success 'restore --ignore-unmerged ignores unmerged entries' '
git restore --ignore-unmerged --quiet . >output 2>&1 &&
git diff common >diff-output &&
: >empty &&
test_cmp empty output &&
test_cmp empty diff-output
test_must_be_empty output &&
test_must_be_empty diff-output
)
'