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
Commit-Queue: Daniel Bratell <>
Reviewed-by: Eric Seckler <>
Reviewed-by: Albert J. Wong <>
Cr-Commit-Position: refs/heads/master@{#625603}
2 files changed