D1126: test-dispatch: make the test compatible with chg

quark (Jun Wu) phabricator at mercurial-scm.org
Mon Oct 16 19:56:17 EDT 2017


quark requested changes to this revision.
quark added a comment.
This revision now requires changes to proceed.


  Just a small nit.

INLINE COMMENTS

> test-dispatch.t:77
>    $ HGDEMANDIMPORT=disable hg version -q
>    abort: error getting current working directory: * (glob)
>    [255]

Alternatively, you can use individual line matching without duplicating the `hg version` line:

  abort: error getting current working directory: * (glob) (no-chg !)
  chg: abort: failed to getcwd (errno = *) (glob) (chg !)

> test-dispatch.t:85
> +  $ HGDEMANDIMPORT=disable hg version -q
> +  chg: abort: failed to getcwd (errno = 2, No such file or directory)
> +  [255]

`errno` and error message could be platform dependent:

  chg: ... (errno = *) (glob)

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1126

To: singhsrb, #hg-reviewers, quark
Cc: quark, mercurial-devel


More information about the Mercurial-devel mailing list