[wptrunner] Support crash logs when using run_wpt_tests.py
This augments the Chromium log formatter to handle process_output messages, allowing it to capture logs for a test from ChromeDriver. The logs are accumulated for each test, then inserted into the output JSON as an artifact if the test has a CRASH status. The post-run script in wpt_common.py then converts the crash log lines to a file on disk. Also, the handling of the CRASH status in the Chromium log formatter is fixed; it was incorrectly mapping CRASH to FAIL. Finally, --enable-chrome-logs is passed as a webdriver-arg in run_wpt_tests.py, so that full browser logs are available. Bug: 1057197 Change-Id: I7b533398f8b008ea493c1d183f429b1b13d4a1f8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2327613 Commit-Queue: Stephen McGruer <smcgruer@chromium.org> Reviewed-by:Robert Ma <robertma@chromium.org> Cr-Commit-Position: refs/heads/master@{#796412}
Showing
Please register or sign in to comment