git-p4: add failing test for "git-p4: respect excluded paths when detecting branches"
[gitweb.git] / t / t3418-rebase-continue.sh
index 0210b2ac6f0709cce4bf7b656b3c61a751330e61..bdaa511bb0ae1082568e83781252f667b39cda8a 100755 (executable)
@@ -254,4 +254,15 @@ test_expect_success 'the todo command "break" works' '
        test_path_is_file execed
 '
 
+test_expect_success '--reschedule-failed-exec' '
+       test_when_finished "git rebase --abort" &&
+       test_must_fail git rebase -x false --reschedule-failed-exec HEAD^ &&
+       grep "^exec false" .git/rebase-merge/git-rebase-todo &&
+       git rebase --abort &&
+       test_must_fail git -c rebase.rescheduleFailedExec=true \
+               rebase -x false HEAD^ 2>err &&
+       grep "^exec false" .git/rebase-merge/git-rebase-todo &&
+       test_i18ngrep "has been rescheduled" err
+'
+
 test_done