[PATCH 2 of 2] test-subrepo-svn: fix non-determinism

Matt Harbison matt_harbison at yahoo.com
Fri Apr 27 08:16:29 CDT 2012


Cool, you even found the other one that was failing every time... until I
wanted it to happen to write it up.  I scripted it and it ran fine a
couple hundred times before work.  Thanks.

--- On Fri, 4/27/12, Patrick Mezard <patrick at mezard.eu> wrote:

> From: Patrick Mezard <patrick at mezard.eu>
> Subject: [PATCH 2 of 2] test-subrepo-svn: fix non-determinism
> To: mercurial-devel at selenic.com
> Cc: matt_harbison at yahoo.com
> Date: Friday, April 27, 2012, 4:40 AM
> # HG changeset patch
> # User Patrick Mezard <patrick at mezard.eu>
> # Date 1335514675 -7200
> # Branch stable
> # Node ID 7ebd9d8ff1c6106e066f39a97c4feb874ce46807
> # Parent  ad738e6b566dc60848f56386f3867a2706d0c652
> test-subrepo-svn: fix non-determinism
> 
> The test was randomly failing with:
> 
>   --- /tests/test-subrepo-svn.t
>   +++ /test-subrepo-svn.t.err
>   @@ -273,10 +273,10 @@
>      1 files updated, 0 files merged, 0
> files removed, 0 files unresolved
>      $ cd t/s
>      $ svn status
>   -  ? *    a (glob)
>   -  X *    externals (glob)
>   -  ? *    f1 (glob)
>   -  ? *    f2 (glob)
>   +  ?       f1
>   +  ?       f2
>   +  ?       a
>   +  X       externals
> 
>      Performing status on external item
> at 'externals'* (glob)
> 
> diff --git a/tests/test-subrepo-svn.t
> b/tests/test-subrepo-svn.t
> --- a/tests/test-subrepo-svn.t
> +++ b/tests/test-subrepo-svn.t
> @@ -272,13 +272,13 @@
>    Checked out revision 3.
>    1 files updated, 0 files merged, 0 files
> removed, 0 files unresolved
>    $ cd t/s
> -  $ svn status
> +  $ svn status | sort
>>    ? *    a (glob)
> -  X *    externals (glob)
>    ? *    f1 (glob)
>    ? *    f2 (glob)
>>    Performing status on external item at
> 'externals'* (glob)
> +  X *    externals (glob)
>  
>  Sticky subrepositories, no changes
>    $ cd $TESTTMP/sub/t
> 


More information about the Mercurial-devel mailing list