diff options
author | 2025-01-27 15:44:13 -0800 | |
---|---|---|
committer | 2025-01-27 16:22:30 -0800 | |
commit | 799a348923efed985030168e08fdf3e650baea67 (patch) | |
tree | 6077e8288ed767bcc454bea1db4ed69cb2b997b9 /api/api_test.go | |
parent | 9b828add5e3fddcce23b92b51a568923428773ff (diff) |
Add ravenhelper command to bulk-disable tests
- Add "ravenhelper mm", which stands for "mark-method", which reads
from STDIN a list of methods in a form of:
com.android.ravenwoodtest.tests.Test1#testA
com.android.ravenwoodtest.tests.Test1#testB
com.android.ravenwoodtest.tests.Test1#testC
(which is basically a failed test list from atest)
and inject arbitrary lines on each of these methods.
- This is similar to "ravenizer pta" -- it creates a shell script that
updates the source files, rather than directly updating them.
- The primary purpose is for bulk-adding arbitrary annotations, such as
"@Ignore" or "@DisabledOnRavenwood" to broken test methods.
- Add a wrapper script "add-annotations.sh".
Flag: EXEMPT host test change only
Bug: 292141694
Test: Manual test:
./scripts/add-annotations.sh -t '@@Ignore' /android/main-without-vendor/frameworks/base/ravenwood/tests/ <method-list.txt
Run the generated script and make sure '@Ignore' is added to the target methods.
Change-Id: If61cc968cae26a1a8dbff7b68a9f42a7459ad0dc
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions