Patchwork tests: stabilize test-share.t on Windows

login
register
mail settings
Submitter Matt Harbison
Date March 8, 2019, 3:20 a.m.
Message ID <9e2691c2e48ee886073d.1552015205@Envy>
Download mbox | patch
Permalink /patch/39139/
State Accepted
Headers show

Comments

Matt Harbison - March 8, 2019, 3:20 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1552014862 18000
#      Thu Mar 07 22:14:22 2019 -0500
# Node ID 9e2691c2e48ee886073d71bee4353abf08fe2739
# Parent  3ba9ca537f57ecd37ff6f72926d0d8824dc5b0a8
tests: stabilize test-share.t on Windows

PYTHON was not getting mangled for MSYS style paths, and remote was spitting out

    remote: 'C' is not recognized as an internal or external command,
    remote: operable program or batch file.

(once -q was removed).  Additionally, this should fix a failure with py3 because
of spaces in the path.
Yuya Nishihara - March 9, 2019, 1:15 a.m.
On Thu, 07 Mar 2019 22:20:05 -0500, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison@yahoo.com>
> # Date 1552014862 18000
> #      Thu Mar 07 22:14:22 2019 -0500
> # Node ID 9e2691c2e48ee886073d71bee4353abf08fe2739
> # Parent  3ba9ca537f57ecd37ff6f72926d0d8824dc5b0a8
> tests: stabilize test-share.t on Windows

Queued, thanks.

Patch

diff --git a/tests/test-share.t b/tests/test-share.t
--- a/tests/test-share.t
+++ b/tests/test-share.t
@@ -127,7 +127,7 @@  hg serve shared clone
 Cloning a shared repo via bundle2 results in a non-shared clone
 
   $ cd ..
-  $ hg clone -q --stream --config ui.ssh="$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/`pwd`/repo2 cloned-via-bundle2
+  $ hg clone -q --stream --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/`pwd`/repo2 cloned-via-bundle2
   $ cat ./cloned-via-bundle2/.hg/requires | grep "shared"
   [1]
   $ hg id --cwd cloned-via-bundle2 -r tip