]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t2027: use test_must_be_empty
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 20 Jun 2019 09:55:20 +0000 (16:55 +0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Jun 2019 20:31:20 +0000 (13:31 -0700)
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2070-restore.sh

index 73ea13ede91c03e87e7af2a37f45032669ecda7b..2650df196670b8a98d7ba558b108e2d07697dfdc 100755 (executable)
@@ -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
        )
 '