Bug 250398
| Summary: | Unable to reset messages.py unit test results | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | David Kilzer (:ddkilzer) <ddkilzer> |
| Component: | Tools / Tests | Assignee: | David Kilzer (:ddkilzer) <ddkilzer> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | jbedard, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | 171627 | ||
| Bug Blocks: | |||
David Kilzer (:ddkilzer)
I am currently unable to reset messages.py unit test results.
$ xcrun python3 Source/WebKit/Scripts/webkit/messages_unittest.py -r
Traceback (most recent call last):
File "Source/WebKit/Scripts/webkit/messages_unittest.py", line 145, in <module>
add_reset_results_to_unittest_help()
File "Source/WebKit/Scripts/webkit/messages_unittest.py", line 121, in add_reset_results_to_unittest_help
lines = unittest.TestProgram.USAGE.splitlines(True)
AttributeError: type object 'TestProgram' has no attribute 'USAGE'
$
I'm not sure when this started failing--maybe after the Python3 update?
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/104085791>
David Kilzer (:ddkilzer)
LOL...I have only myself to blame:
Bug 171627: messages_unittest.py should support a [-r|--reset-results] switch
<https://bugs.webkit.org/show_bug.cgi?id=171627>
Radar WebKit Bug Importer
<rdar://problem/104085961>
David Kilzer (:ddkilzer)
<rdar://problem/104085791>
David Kilzer (:ddkilzer)
Pull request: https://github.com/WebKit/WebKit/pull/8477
EWS
Committed 258748@main (639329ca6b9a): <https://commits.webkit.org/258748@main>
Reviewed commits have been landed. Closing PR #8477 and removing active labels.