Patchwork D1843: run-tests: fix regular expression for path test

login
register
mail settings
Submitter phabricator
Date Jan. 11, 2018, 3:09 a.m.
Message ID <eb89f26ee885f91138a4e11e96e30b17@localhost.localdomain>
Download mbox | patch
Permalink /patch/26671/
State Not Applicable
Headers show

Comments

phabricator - Jan. 11, 2018, 3:09 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG31acf6619f08: run-tests: fix regular expression for path test (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1843?vs=4785&id=4787

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

AFFECTED FILES
  tests/run-tests.py

CHANGE DETAILS




To: indygreg, #hg-reviewers, durin42
Cc: mercurial-devel

Patch

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -2450,7 +2450,7 @@ 
             # If it looks like our in-repo Rust binary, use the source root.
             # This is a bit hacky. But rhg is still not supported outside the
             # source directory. So until it is, do the simple thing.
-            elif re.search(b'|/rust/target/[^/]+/hg', normbin):
+            elif re.search(b'/rust/target/[^/]+/hg', normbin):
                 self._pythondir = os.path.dirname(self._testdir)
             # Fall back to the legacy behavior.
             else: