From patchwork Thu Jan 11 03:09:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D1843: run-tests: fix regular expression for path test From: phabricator X-Patchwork-Id: 26671 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Thu, 11 Jan 2018 03:09:37 +0000 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 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: