|
- 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
|