[PATCH] tests: conditionalize Windows difference in test-dispatch.t

Matt Harbison mharbison72 at gmail.com
Sat Jan 26 02:21:01 UTC 2019


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1548469191 18000
#      Fri Jan 25 21:19:51 2019 -0500
# Node ID c5f97f739ec669749ea0c3bd1e17ac7facc51706
# Parent  d59571aba933f16db8e58ec9b61365ea4db0e2fa
tests: conditionalize Windows difference in test-dispatch.t

The output matches the comment added 6 years ago in ef60083b5536, so I'm
assuming that difference was the reason for the over-globbing removed in
93a7539a546e.

There's still a bit of py3 instability here, but I assume those are just more
Windows issues:

  @@ -95,7 +95,7 @@
     [255]

     $ hg log -b --cwd=inexistent default
  -  abort: $ENOENT$: 'inexistent'
  +  abort: $ENOENT$: inexistent
     [255]

     $ hg log -b '--config=ui.traceback=yes' 2>&1 | grep '^Traceback'
  @@ -189,7 +189,7 @@

     $ hg -R a archive ''
     abort: $ENOENT$: '' (no-windows !)
  -  abort: $ENOTDIR$: '' (windows !)
  +  abort: $ENOTDIR$
     [255]

   #if no-outer-repo

diff --git a/tests/test-dispatch.t b/tests/test-dispatch.t
--- a/tests/test-dispatch.t
+++ b/tests/test-dispatch.t
@@ -188,7 +188,8 @@ OSError "No such file or directory" / "T
 specified" should include filename even when it is empty
 
   $ hg -R a archive ''
-  abort: $ENOENT$: ''
+  abort: $ENOENT$: '' (no-windows !)
+  abort: $ENOTDIR$: '' (windows !)
   [255]
 
 #if no-outer-repo


More information about the Mercurial-devel mailing list