[test] Log output on error in perf runner

NOTRY=true
TBR=sergiyb@chromium.org

Bug: chromium:866862
Change-Id: I52737a644c36f78b1803a443b89600bb7a114082
Reviewed-on: https://chromium-review.googlesource.com/1168485
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#54997}
This commit is contained in:
Michael Achenbach 2018-08-09 08:54:56 +02:00 committed by Commit Bot
parent f0094ead1d
commit e51782d33b

View File

@ -764,6 +764,9 @@ class AndroidPlatform(Platform): # pragma: no cover
timeout=runnable.timeout,
)
logging.info(title % "Stdout" + "\n%s", stdout)
except android.CommandFailedException as e:
logging.info(title % "Stdout" + "\n%s", e.output)
raise
except android.TimeoutException:
logging.warning(">>> Test timed out after %ss.", runnable.timeout)
stdout = ""