[PATCH V2] test-bad-pull: adjust for Windows

Mads Kiilerich mads at kiilerich.com
Wed Jun 20 20:47:41 CDT 2012


Adrian Buehlmann wrote, On 06/19/2012 05:15 PM:
> # HG changeset patch
> # User Adrian Buehlmann <adrian at cadifra.com>
> # Date 1340118304 -7200
> # Node ID 0e283e25191e199a693b8e19434ff5612f9de465
> # Parent  8390831ff124322fbfe14ee74007e72de3923472
> test-bad-pull: adjust for Windows
>
> On a English Windows 7, the testcase fails with
>
>    $ hg clone http://localhost:$HGPORT/ copy
>    abort: error: No connection could be made because the target machine actively refused it
>
> Since the error message on non-English Windows installs are most likely
> different, we have to glob the entire error message away for Windows.

Pushed to crew with minor subject line adjustment, thanks.

Please tell in the commit message if a change doesn't bring the test 
suite to a state where the test can run but 'only' is one step in that 
direction. But I guess it works for you when you hghave serve.

/Mads


> diff --git a/tests/test-bad-pull.t b/tests/test-bad-pull.t
> --- a/tests/test-bad-pull.t
> +++ b/tests/test-bad-pull.t
> @@ -1,8 +1,14 @@
>     $ "$TESTDIR/hghave" serve || exit 80
>   
> +#if windows
> +  $ hg clone http://localhost:$HGPORT/ copy
> +  abort: * (glob)
> +  [255]
> +#else
>     $ hg clone http://localhost:$HGPORT/ copy
>     abort: error: Connection refused
>     [255]
> +#endif
>   
>     $ test -d copy
>     [1]
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel




More information about the Mercurial-devel mailing list