[PATCH] tests: stabilize test-share.t on Windows

Matt Harbison mharbison72 at gmail.com
Thu Mar 7 22:20:05 EST 2019

# HG changeset patch
# User Matt Harbison <matt_harbison at 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.

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"
   $ hg id --cwd cloned-via-bundle2 -r tip

More information about the Mercurial-devel mailing list