New issue
Advanced search Search tips

Issue 917488 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

test runner wrapper scripts - add colored logcat command

Project Member Reported by agrieve@chromium.org, Dec 21

Issue description

We have two main kinds of wrapper scripts:
1) android_apk --> apk_operations.py
2) instrumentation_test_apk --> test_runner.py

apk_operations.py has one really nice command that I wish tests had: colored & filtered logcat.

Logcat doesn't even make sense for test_runner.py  in some cases, because it can run on multiple devices. However, it's pretty common for local development to run against a single device and want to see the logcat.

I'd suggest we create a run_foo_test wrapper script command that delegates to apk_operations.py rather than test_runner.py so that you can do:

"out/Debug/bin/run_chrome_public_test_apk logcat"

and have this run: build/android/apk_operations.py logcat --package-name org.chromium.chrome.tests --proguard-mapping-path PATH

Note: when there's an under_test apk, it's the under_test apk's package_name to use.


 
I assume that apk_operations.py is then calling build/android/test_runner.py under the hood in your suggestion?
The idea here is that you'd run the test in one tab via:

bin/run_foo_tests

and then at the same time in another tab, run:

bin/run_foo_tests logcat

I don't love it though... It's quite obscure.
Labels: QuickFix

Sign in to add a comment