Simplify and refine mojo apptest runner scripts.
commitdf303264eb5606c56c5a2ce0e5b928d736353b0b
authormsw <msw@chromium.org>
Thu, 21 May 2015 21:53:45 +0000 (21 14:53 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 21 May 2015 21:55:07 +0000 (21 21:55 +0000)
tree2c36bcaaf8fb969c38fc1bd20126f76d55ed3a20
parent2a13f1055fbba6ccb341b6fe3cab59647c876153
Simplify and refine mojo apptest runner scripts.

Inline log.py, test_util.py, and print_process_error.py
Add Paths.apk_path, point mojo_runner to android_mojo_shell.py.
Rename "shell-args" dictionary entry to "args", nix "test-args".

Make --verbose elevate the default WARNING log level to DEBUG.
Attempt to use stdout instead of stderr for the logging stream.
(bots print logging in red, oddly interspersed with stdout)
Print a list of passed and failed tests at the end.

Log the adb path and adb devices output; see Issue 486220.
Simply check the "adb root" call (fail no device, more errors)

Lots of tests.py refactoring with test_utils.py inlining.
Improve the logging and output for clarity.

BUG=478244,486220
TEST=No Mojo/Mandoline python script regressions, better apptest output.
R=sky@chromium.org

Review URL: https://codereview.chromium.org/1151643004

Cr-Commit-Position: refs/heads/master@{#331001}
mandoline/tools/android_run_mandoline.py
mojo/tools/android_mojo_shell.py
mojo/tools/apptest_runner.py
mojo/tools/data/apptests
mojo/tools/mopy/android.py
mojo/tools/mopy/gtest.py
mojo/tools/mopy/log.py [deleted file]
mojo/tools/mopy/paths.py
mojo/tools/mopy/print_process_error.py [deleted file]
mojo/tools/mopy/test_util.py [deleted file]