[PATCH 01 of 14] tests: roll test-committer.t into test-commit.t

Adrian Buehlmann adrian at cadifra.com
Fri Jun 8 12:02:54 CDT 2012


On 2012-06-08 18:07, Martin Geisler wrote:
>> diff --git a/tests/test-commit.t b/tests/test-commit.t
>> --- a/tests/test-commit.t
>> +++ b/tests/test-commit.t
>> @@ -106,7 +106,8 @@
>>    [255]
>>  
>>    $ cd ..
>> -
>> +  $ pwd
>> +  $TESTTMP
> 
> Is this there on purpose? I don't see what it tests.
> 

It is on purpose.

Some tests had errors with incorrectly matched cd of the sort

   $ cd foo
   ...
   $ cd ..
   ...
   $ cd ..

which resultet in cd'ing way too high up. That check makes sure that
this doesn't happen again if someone edits the test later on.





More information about the Mercurial-devel mailing list