Make parserTests.php more git bisect-friendly
authorAryeh Gregor <simetrical@users.mediawiki.org>
Thu, 5 Feb 2009 23:41:00 +0000 (23:41 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Thu, 5 Feb 2009 23:41:00 +0000 (23:41 +0000)
commit960889ec74b12332acd45eda29c0845cec34b762
tree295a7669197bbc26d67b6e9f59c16f5867c0179e
parent675aba0676954f95db56c89576bcf783c59ea9db
Make parserTests.php more git bisect-friendly

Now the following commands can track down parser test regressions (if
you're using git svn, of course):

  git bisect start bad-rev good-rev
  git bisect run maintenance/parserTests.php --regex 'Test name'

Just type those in (replacing "bad-rev" and "good-rev" with revision
ids, and 'Test name' with a regex that uniquely matches the regressing
test's name), and git will magically find the first bad revision for you
in a couple of minutes.  (Then run git bisect reset to get back to
normal.)

All I changed to make this possible was changing the error return code
from 255 (-1) to 1.  git bisect treats 1-124 and 126-127 as error codes,
but for some reason doesn't like 128-255.
maintenance/parserTests.php