Patchwork tests: conditionalize Windows difference in test-dispatch.t

login
register
mail settings
Submitter Matt Harbison
Date Jan. 26, 2019, 2:21 a.m.
Message ID <c5f97f739ec669749ea0.1548469261@Envy>
Download mbox | patch
Permalink /patch/38061/
State Accepted
Headers show

Comments

Matt Harbison - Jan. 26, 2019, 2:21 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@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
Yuya Nishihara - Jan. 26, 2019, 4:09 a.m.
On Fri, 25 Jan 2019 21:21:01 -0500, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison@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

Queued, thanks.

Patch

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