Mercurial > hg
changeset 12338:b016fc1c0862
tests: add hack to avoid problem with graphlog in unified tests
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 20 Sep 2010 14:36:36 -0500 |
parents | 6a6149487817 |
children | f85338f509e4 |
files | tests/run-tests.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Mon Sep 20 14:32:21 2010 -0500 +++ b/tests/run-tests.py Mon Sep 20 14:36:36 2010 -0500 @@ -503,6 +503,9 @@ def rematch(el, l): try: + # hack to deal with graphlog, which looks like bogus regexes + if el.startswith('|'): + el = '\\' + el return re.match(el, l) except re.error: # el is an invalid regex