From: Karl Hasselström Date: Fri, 22 Feb 2008 07:48:54 GMT Subject: Re: [PATCH 2/2] Test the 'stg rename' command Message-ID: <20080222074854.GD6630@diana.vm.bytemark.co.uk> In-Reply-To: <200802212243.18922.onno@gmx.net> On 2008-02-21 22:43:18 +0100, Onno Kortmann wrote: > +test_expect_success 'Rename with two arguments' ' > + stg new -m baz > + stg rename bar foo > +' You want "&&" at the end of every line but the last one, otherwise errors in any line but the last won't be caught. I'll add that, if you don't mind. > +test_expect_success 'Rename to existing name' ' > + ! stg rename foo baz > +' You remembered to use test_expect_success and ! instead of test_expect_failure -- good! -- Karl Hasselström, kha@treskal.com www.treskal.com/kalle