]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t3421-rebase-topology-linear.sh
t: teach test_cmp_rev to accept ! for not-equals
[thirdparty/git.git] / t / t3421-rebase-topology-linear.sh
index b847064f9172dd131e0e536b2d442f98bc971c6c..325072b0a33e10ad44c3d3d561e207b2a03a13a6 100755 (executable)
@@ -61,7 +61,7 @@ test_run_rebase () {
        test_expect_$result "rebase $* -f rewrites even if upstream is an ancestor" "
                reset_rebase &&
                git rebase $* -f b e &&
-               ! test_cmp_rev e HEAD &&
+               test_cmp_rev ! e HEAD &&
                test_cmp_rev b HEAD~2 &&
                test_linear_range 'd e' b..
        "
@@ -78,7 +78,7 @@ test_run_rebase () {
        test_expect_$result "rebase $* -f rewrites even if remote upstream is an ancestor" "
                reset_rebase &&
                git rebase $* -f branch-b branch-e &&
-               ! test_cmp_rev branch-e origin/branch-e &&
+               test_cmp_rev ! branch-e origin/branch-e &&
                test_cmp_rev branch-b HEAD~2 &&
                test_linear_range 'd e' branch-b..
        "
@@ -368,7 +368,7 @@ test_run_rebase () {
        test_expect_$result "rebase $* -f --root on linear history causes re-write" "
                reset_rebase &&
                git rebase $* -f --root c &&
-               ! test_cmp_rev a HEAD~2 &&
+               test_cmp_rev ! a HEAD~2 &&
                test_linear_range 'a b c' HEAD
        "
 }