This is an archive of the discontinued Mercurial Phabricator instance.

testrunner: make reading of test times work with #testcases
ClosedPublic

Authored by martinvonz on Feb 1 2018, 12:19 PM.

Details

Summary

Due to a bug that will be fixed in the next patch, we never actually
read back .testcases, so we didn't notice that it could not be parsed
successfully when there are #testcases tests. The parsing failed on
lines like "test-amend-subrepo.t (case obsstore-off) 32.420" because
we used a simple string.split() call and expected all parts but the
first to be floating point numbers (and "(case" isn't, for
example). Fix by using a regex instead.

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.Feb 1 2018, 12:19 PM

I wrote this patch before D1959, but perhaps I should rebase it on top of that and reuse the same regex for matching the test case?

durin42 accepted this revision.Feb 1 2018, 5:36 PM
This revision is now accepted and ready to land.Feb 1 2018, 5:36 PM
This revision was automatically updated to reflect the committed changes.