summaryrefslogtreecommitdiff
path: root/ravenwood/scripts/add-annotations.sh
AgeCommit message (Collapse)Author
2025-02-24Multiple improvements Makoto Onuki
- Sysprops allowlist now fully moved to the text file. - Always enable the test timeout w/ improved stack traces - Add a method to "run on main thread" - Always enable the uncaught exception handler. - Tolerate assertion failures on the main looper. (rather than letting it crash the thread) - Also some other minor changes needed in my main work. Flag: EXEMPT host test change only Bug: 292141694 Test: $ANDROID_BUILD_TOP/frameworks/base/ravenwood/scripts/run-ravenwood-tests.sh Change-Id: I47b060021ce46b6e9fbe4aca63835745311a4b06
2025-01-27Add ravenhelper command to bulk-disable tests Makoto Onuki
- 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