Re: [PATCH] t/t3903-stash: improve testing of git-stash show

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sep 24, 2010, at 4:40 PM, Brandon Casey wrote:

> From: Brandon Casey <drafnel@xxxxxxxxx>
> 
> Recently, the 'stash show' functionality was broken for the case when a
> stash-like argument was supplied.  Since, commit 9bf09e, 'stash show' when
> supplied a stash-like argument prints nothing and still exists with a zero
> status.  Unfortunately, the flaw slipped through the test suite cracks
> since the output of 'stash show' was not verified to be correct.
> 
> Improve and expand on the existing tests so that this flaws is detected.
> 
> Signed-off-by: Brandon Casey <casey@xxxxxxxxxxxxxxx>
> ---
> 
> 
> On 09/24/2010 03:27 PM, Brian Gernhardt wrote:
>> I bisected the issue to a9bf09e (detached-stash: simplify git stash show),
>> which is when "git stash show" started using parse_flags_and_rev (via
>> assert_stash_like()).
>> 
>> More worrying to me is that the tests for "git stash show" don't bother
>> to test the output.  I'll be working on that now.
> 
> I was preparing these tests when your email came in.

I spent longer finding the source of the problem than you did.  I was just putting the finishing touches on it when I got this.  Yours is more through than mine, so I won't bother finishing.

~~ Brian

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]