test-lib: parse options in a for loop to keep $@ intact
[gitweb.git] / t / t4010-diff-pathspec.sh
index b7f25071cfb24408f43634d016ac785bba282614..281f8fad0c71687aecec7479328ce8609cda5c83 100755 (executable)
@@ -74,8 +74,7 @@ test_expect_success 'diff-tree pathspec' '
        tree2=$(git write-tree) &&
        echo "$tree2" &&
        git diff-tree -r --name-only $tree $tree2 -- pa path1/a >current &&
-       >expected &&
-       test_cmp expected current
+       test_must_be_empty current
 '
 
 test_expect_success 'diff-tree with wildcard shows dir also matches' '