Remove potential hang+timeout from _nocompile tests

If output buffers got full while running the tests, the
script would hang, polling the process forever and it would never
return a return_code from proc.poll().

This might have caused some random timouts but if so, it is
unclear what 64 KB output filled up the buffers, unless the buffers
were smaller than local testing would indicate.

This stores stdout and stderr in temporary files and reads those
files back into memory after the process has finished.

Bug: 882852
Change-Id: I4e6ace2bb783fadcde3f43643ccad03c58ef519a
Reviewed-on: https://chromium-review.googlesource.com/c/1425736
Commit-Queue: Daniel Bratell <bratell@opera.com>
Reviewed-by: Eric Seckler <eseckler@chromium.org>
Reviewed-by: Albert J. Wong <ajwong@chromium.org>
Cr-Commit-Position: refs/heads/master@{#625603}
2 files changed