Imported Upstream version 2.22.3
[platform/upstream/git.git] / t / t3425-rebase-topology-merges.sh
index 1d195fb..fd8efe8 100755 (executable)
@@ -24,7 +24,7 @@ test_expect_success 'setup of non-linear-history' '
        test_commit c &&
        git checkout b &&
        test_commit d &&
-       test_commit e
+       test_commit e &&
 
        git checkout c &&
        test_commit g &&
@@ -33,7 +33,7 @@ test_expect_success 'setup of non-linear-history' '
        cherry_pick gp g &&
        test_commit i &&
        git checkout b &&
-       test_commit f
+       test_commit f &&
 
        git checkout d &&
        test_commit n &&
@@ -70,9 +70,8 @@ test_run_rebase () {
                test_linear_range "\'"$expected"\'" d..
        "
 }
-#TODO: make order consistent across all flavors of rebase
-test_run_rebase success 'e n o' ''
-test_run_rebase success 'e n o' -m
+test_run_rebase success 'n o e' ''
+test_run_rebase success 'n o e' -m
 test_run_rebase success 'n o e' -i
 
 test_run_rebase () {
@@ -87,9 +86,8 @@ test_run_rebase () {
                test_linear_range "\'"$expected"\'" c..
        "
 }
-#TODO: make order consistent across all flavors of rebase
-test_run_rebase success 'd e n o' ''
-test_run_rebase success 'd e n o' -m
+test_run_rebase success 'd n o e' ''
+test_run_rebase success 'd n o e' -m
 test_run_rebase success 'd n o e' -i
 
 test_run_rebase () {
@@ -104,11 +102,15 @@ test_run_rebase () {
                test_linear_range "\'"$expected"\'" c..
        "
 }
-#TODO: make order consistent across all flavors of rebase
-test_run_rebase success 'd e n o' ''
-test_run_rebase success 'd e n o' -m
+test_run_rebase success 'd n o e' ''
+test_run_rebase success 'd n o e' -m
 test_run_rebase success 'd n o e' -i
 
+if ! test_have_prereq REBASE_P; then
+       skip_all='skipping git rebase -p tests, as asked for'
+       test_done
+fi
+
 test_expect_success "rebase -p is no-op in non-linear history" "
        reset_rebase &&
        git rebase -p d w &&