comparison tests/run-tests.py @ 34445:df78b1a24094

test-logtoprocess: make it compatible with chg chg runs more commands and outputs more lines. This patch matches them. Differential Revision: https://phab.mercurial-scm.org/D914
author Jun Wu <quark@fb.com>
date Mon, 02 Oct 2017 18:22:43 -0700
parents 20f547806a4d
children 9c7548eb7d1c
comparison
equal deleted inserted replaced
34444:f2268edf38d5 34445:df78b1a24094
593 593
594 # Match feature conditionalized output lines in the form, capturing the feature 594 # Match feature conditionalized output lines in the form, capturing the feature
595 # list in group 2, and the preceeding line output in group 1: 595 # list in group 2, and the preceeding line output in group 1:
596 # 596 #
597 # output..output (feature !)\n 597 # output..output (feature !)\n
598 optline = re.compile(b'(.+) \((.+?) !\)\n$') 598 optline = re.compile(b'(.*) \((.+?) !\)\n$')
599 599
600 def cdatasafe(data): 600 def cdatasafe(data):
601 """Make a string safe to include in a CDATA block. 601 """Make a string safe to include in a CDATA block.
602 602
603 Certain control characters are illegal in a CDATA block, and 603 Certain control characters are illegal in a CDATA block, and