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>
Nguyễn Thái Ngọc Duy committed
Jun 20, 2019 at 16:55 UTC
bcba406532725fcdf17d5a3d9c6585e8fc879021
1 file changed
+2
-3
t/t2070-restore.sh
+2
-3
@@ -90,9 +90,8 @@ test_expect_success 'restore --ignore-unmerged ignores unmerged entries' '
90
91
git restore --ignore-unmerged --quiet . >output 2>&1 &&
92
git diff common >diff-output &&
93
- : >empty &&
94
- test_cmp empty output &&
95
- test_cmp empty diff-output
93
+ test_must_be_empty output &&
94
+ test_must_be_empty diff-output
95
)
96
'
97