t9902: use a non-deprecated command for testing
[gitweb.git] / t / t3510-cherry-pick-sequence.sh
index 20515ea37bd6dd7a3043e1873008bd83731088a3..793bcc7fe3246e8fc375b8678bb99f7bc875a48c 100755 (executable)
@@ -172,6 +172,26 @@ test_expect_success 'check advice when we move HEAD by committing' '
        test_i18ncmp expect advice
 '
 
+test_expect_success 'selectively advise --skip while launching another sequence' '
+       pristine_detach initial &&
+       cat >expect <<-EOF &&
+       error: cherry-pick is already in progress
+       hint: try "git cherry-pick (--continue | --skip | --abort | --quit)"
+       fatal: cherry-pick failed
+       EOF
+       test_must_fail git cherry-pick picked..yetanotherpick &&
+       test_must_fail git cherry-pick picked..yetanotherpick 2>advice &&
+       test_i18ncmp expect advice &&
+       cat >expect <<-EOF &&
+       error: cherry-pick is already in progress
+       hint: try "git cherry-pick (--continue | --abort | --quit)"
+       fatal: cherry-pick failed
+       EOF
+       git reset --merge &&
+       test_must_fail git cherry-pick picked..yetanotherpick 2>advice &&
+       test_i18ncmp expect advice
+'
+
 test_expect_success 'allow skipping commit but not abort for a new history' '
        pristine_detach initial &&
        cat >expect <<-EOF &&