mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 20:01:50 +00:00

On Android long lines are truncated by logcat, meaning the base64 images output by wrench's reftest harness get truncated. The glue code used by the old version of cargo-apk automatically split long lines, which we then stitched back together again when parsing the log. However, the glue used by the new cargo-apk no longer does this. While we could manually split the long strings ourselves, this method has always been unreliable. Instead, this patch makes us additionally write stdout and stderr to a file as well as logcat. The test runner script then pulls this file from the device and scrapes it rather than the logcat. Differential Revision: https://phabricator.services.mozilla.com/D145076