This is an archive of the discontinued Mercurial Phabricator instance.

tests: fix regex in test-subrepo-git.t to match entire string
ClosedPublic

Authored by martinvonz on Nov 29 2017, 2:21 PM.

Details

Summary

Due to a bug in the test runner (fixed by the next commit), the regex
used for matching lines like " foobar | 2 +-" stoppped at the "|" and
the test passed even though the rest of the line did not match. The
test seems to have been supposed to match "|" and "+" literally on
those lines, so this changes the regex to escape those characters. It
also changes a "\s*" to "\s+" since I think we'll always include a
space after the "|" in the diffstat output.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

martinvonz created this revision.Nov 29 2017, 2:21 PM
quark accepted this revision.Nov 29 2017, 3:20 PM
yuja accepted this revision.Nov 30 2017, 7:42 AM
This revision is now accepted and ready to land.Nov 30 2017, 7:42 AM
This revision was automatically updated to reflect the committed changes.