Jamie Nicol 696fe23ef3 Bug 1766990 - Redirect stdout and stderr to file for wrench tests on Android. r=gfx-reviewers,nical
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
2022-05-03 15:37:49 +00:00
..