[PATCH 2 of 2] tests: handle differences between missing file error strings on Windows and Unix

Augie Fackler raf at durin42.com
Tue Nov 25 09:41:52 CST 2014


On Wed, Nov 19, 2014 at 12:05:04AM -0500, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison at yahoo.com>
> # Date 1416372718 18000
> #      Tue Nov 18 23:51:58 2014 -0500
> # Node ID 2cfd7aa5b366f6a02aab040ab4e92cbb3130c040
> # Parent  c7f4ddbf7c2b8ab3eac36ed65808c5c4e7d5c5a3
> tests: handle differences between missing file error strings on Windows and Unix

These patches were pushed as 5bd04faaa3ee and c2907334276b. Thanks!

(I didn't see any other mail about this, but I could just be failing at email.)

>
> diff --git a/tests/test-status-rev.t b/tests/test-status-rev.t
> --- a/tests/test-status-rev.t
> +++ b/tests/test-status-rev.t
> @@ -81,8 +81,13 @@
>    $ hg status -A --rev 1 'glob:missing_*_missing-tracked'
>    ! missing_content2_missing-tracked
>    ! missing_missing_missing-tracked
> +#if windows
> +  $ hg status -A --rev 1 'glob:missing_missing_missing-untracked'
> +  missing_missing_missing-untracked: The system cannot find the file specified
> +#else
>    $ hg status -A --rev 1 'glob:missing_missing_missing-untracked'
>    missing_missing_missing-untracked: No such file or directory
> +#endif
>
>  Status between first and second commit. Should ignore dirstate status.
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list