Mercurial > hg
comparison hgext/bugzilla.py @ 25388:6025cac3d02f
tests: add (?) flag for optional lines
When the test engine fails to match output on a line marked with (?),
it will simply continue to the next expected line and try again. This
allows simplifying tests that have either version-specific or
non-fixed behavior, for instance:
$ coin-flip
heads (?)
tails (?)
(There's no form of back-tracking attempted, so optional matches
should be specific.)
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 31 May 2015 16:59:34 -0500 |
parents | 80c5b2666a96 |
children | 328739ea70c3 |
comparison
equal
deleted
inserted
replaced
25387:390a10b7843b | 25388:6025cac3d02f |
---|