Re: [PATCH 5/9] t3510 (cherry-pick-sequencer): use exit status
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Dec 9, 2011, 20:36 UTC
- Message-ID
- <CALkWK0=a=-4N4aZHuu=5zkNtwmfLsog5WkBVbuJAbYpvaLUsAg@mail.gmail.com>
- In-Reply-To
- <20111209202149.GH20913@elie.hsd1.il.comcast.net>
Jonathan Nieder wrote:
Show 16 quoted lines
> Ramkumar Ramachandra wrote: > > [...] >> --- a/t/t3510-cherry-pick-sequence.sh >> +++ b/t/t3510-cherry-pick-sequence.sh > [...] >> @@ -53,7 +53,7 @@ test_expect_success 'cherry-pick persists data on failure' ' >> >> test_expect_success 'cherry-pick persists opts correctly' ' >> pristine_detach initial && >> - test_must_fail git cherry-pick -s -m 1 --strategy=recursive -X patience -X ours base..anotherpick && >> + test_expect_code 128 git cherry-pick -s -m 1 --strategy=recursive -X patience -X ours base..anotherpick && >> test_path_is_dir .git/sequencer && > > Encountered conflicts, preserving options, but the exit is with status > 128? Smells like a bug.
No bug. Notice that "-m 1" is used when "initial" isn't a merge commit. But yeah, I should probably clarify this by changing the revision range to "initial..anotherpick" so as not to distract the user.
-- Ram