D1574: run-tests: avoid calculating _testdir again
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Sat Dec 2 03:11:51 UTC 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG779c6cf2967b: run-tests: avoid calculating _testdir again (authored by martinvonz, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D1574?vs=4064&id=4077
REVISION DETAIL
https://phab.mercurial-scm.org/D1574
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
@@ -979,8 +979,7 @@
]
r.append((self._escapepath(self._testtmp), b'$TESTTMP'))
- testdir = os.path.dirname(self.path)
- replacementfile = os.path.join(testdir, b'common-pattern.py')
+ replacementfile = os.path.join(self._testdir, b'common-pattern.py')
if os.path.exists(replacementfile):
data = {}
To: martinvonz, #hg-reviewers, yuja
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list