git-p4: fix copy detection test
[gitweb.git] / t / t9814-git-p4-rename.sh
index efae1436ed36c3d9499150eb169b326604b7008a..8b9c2950e853b71887d3fcf6374cfd57c0db60e4 100755 (executable)
@@ -163,7 +163,10 @@ test_expect_success 'detect copies' '
                git commit -a -m "Copy file2 to file11" &&
                git diff-tree -r -C --find-copies-harder HEAD &&
                src=$(git diff-tree -r -C --find-copies-harder HEAD | sed 1d | cut -f2) &&
-               test "$src" = file10 &&
+               case "$src" in
+               file2 | file10) : ;; # happy
+               *) false ;; # not
+               esac &&
                git config git-p4.detectCopiesHarder true &&
                git p4 submit &&
                p4 filelog //depot/file11 &&