D1843: run-tests: fix regular expression for path test
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Thu Jan 11 03:05:22 UTC 2018
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
The previous regexp would match the empty string. This fixes
a mistake added in https://phab.mercurial-scm.org/rHG964212780daf231a17bc9de9c79c1324372ce468.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D1843
AFFECTED FILES
tests/run-tests.py
CHANGE DETAILS
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:
To: indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list