[Request] [+ ] D9009: py3: fix bytes and str mixup in run-tests
khanchi97 (Sushil khanchi)
phabricator at mercurial-scm.org
Fri Sep 11 07:42:49 UTC 2020
khanchi97 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D9009
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
@@ -3347,7 +3347,8 @@
else:
errpath = b'%s.err' % test['path']
if self.options.outputdir:
- errpath = os.path.join(self.options.outputdir, errpath)
+ self._outputdir = canonpath(_sys2bytes(self.options.outputdir))
+ errpath = os.path.join(self._outputdir, errpath)
return errpath
def _getport(self, count):
To: khanchi97, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20200911/00804fb4/attachment-0001.html>
More information about the Mercurial-patches
mailing list