This is an archive of the discontinued LLVM Phabricator instance.

Modify LitTestCommand class to accept optional argument to parse summary lines only
ClosedPublic

Authored by chying on Feb 24 2015, 5:50 PM.

Details

Summary

Modify LitTestCommand class to accept optional argument to parse summary lines only

  • Add optional argument parseSummaryOnly with default value False
  • If the argument is not specified, the behavior will be all the same as before
  • If the argument is passed as True, only the lines after "r'^Failing Tests \(\d*\)$'" will be parsed as test results
  • This is supposed to address the test result display problem with ninja command

Diff Detail

Repository
rL LLVM

Event Timeline

chying updated this revision to Diff 20651.Feb 24 2015, 5:50 PM
chying retitled this revision from to Modify LitTestCommand class to accept optional argument to parse summary lines only.
chying updated this object.
chying edited the test plan for this revision. (Show Details)
chying added reviewers: sivachandra, ovyalov, chaoren.
chying added a subscriber: Unknown Object (MLST).
sivachandra accepted this revision.Feb 25 2015, 1:59 PM
sivachandra edited edge metadata.

LGTM with nits.

zorg/buildbot/commands/LitTestCommand.py
23 ↗(On Diff #20651)

May be a better comment would be:

Regular expression for start of summary marker.

24 ↗(On Diff #20651)

s/kTestResultRE/kSummaryStartRE ?

26 ↗(On Diff #20651)

s/isSummaryOnly/parseSummaryOnly

38 ↗(On Diff #20651)

May be a better comment would be:

The current line is parsed only if |parseLine| is True.

39 ↗(On Diff #20651)

s/parserStarted/parseLine

105 ↗(On Diff #20651)

Add a comment here to explain why and when this check is required.

This revision is now accepted and ready to land.Feb 25 2015, 1:59 PM
This revision was automatically updated to reflect the committed changes.