]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t6041-bisect-submodule.sh
remote-mediawiki tests: use test_cmp in tests
[thirdparty/git.git] / t / t6041-bisect-submodule.sh
index 62b8a2e7bbd1cf26710be0a0eb90041d5e3f7d2c..df1eff0fb831e3ede980157c577c575feab04a4d 100755 (executable)
@@ -10,7 +10,12 @@ git_bisect () {
        ls -1pR * >>expect &&
        tar cf "$TRASH_DIRECTORY/tmp.tar" * &&
        GOOD=$(git rev-parse --verify HEAD) &&
-       git checkout "$1" &&
+       may_only_be_test_must_fail "$2" &&
+       $2 git checkout "$1" &&
+       if test -n "$2"
+       then
+               return
+       fi &&
        echo "foo" >bar &&
        git add bar &&
        git commit -m "bisect bad" &&
@@ -27,6 +32,6 @@ git_bisect () {
        git bisect bad $BAD
 }
 
-test_submodule_switch "git_bisect"
+test_submodule_switch_func "git_bisect"
 
 test_done