[PATCH 6 of 7] run-tests: factor out escapepath
Yuya Nishihara
yuya at tcha.org
Thu Feb 4 13:08:21 UTC 2016
On Mon, 01 Feb 2016 22:14:15 -0600, timeless wrote:
> # HG changeset patch
> # User timeless <timeless at mozdev.org>
> # Date 1454078134 0
> # Fri Jan 29 14:35:34 2016 +0000
> # Node ID a425ffb95dc3e0735e579fe3b34ad49faed293d9
> # Parent 6a9587c24378ace5ca44aa50451f2e588bd9fe2d
> run-tests: factor out escapepath
>
> diff --git a/tests/run-tests.py b/tests/run-tests.py
> --- a/tests/run-tests.py
> +++ b/tests/run-tests.py
> @@ -722,16 +722,19 @@
> (br'(?m)^(saved backup bundle to .*\.hg)( \(glob\))?$',
> br'\1 (glob)'),
> ]
> + r.append((self.escapepath(self._testtmp), b'$TESTTMP'))
>
> + return r
> +
> + def escapepath(self, p):
Let's call it _escapepath(). Most helper functions in Test class are prefixed
by _.
More information about the Mercurial-devel
mailing list