test-lib: parse options in a for loop to keep $@ intact
[gitweb.git] / t / t6200-fmt-merge-msg.sh
index a54a52aaa4e680bdbc97750c4ae4855a45dcdb80..93f23cfa8279ccc093ca332b1eb718c515dd41aa 100755 (executable)
@@ -366,8 +366,6 @@ test_expect_success 'merge-msg with nothing to merge' '
        test_unconfig merge.log &&
        test_config merge.summary yes &&
 
-       >empty &&
-
        (
                cd remote &&
                git checkout -b unrelated &&
@@ -376,7 +374,7 @@ test_expect_success 'merge-msg with nothing to merge' '
                git fmt-merge-msg <.git/FETCH_HEAD >../actual
        ) &&
 
-       test_cmp empty actual
+       test_must_be_empty actual
 '
 
 test_expect_success 'merge-msg tag' '