From 32827511139105ec18f00c577a65e7aa2a280708 Mon Sep 17 00:00:00 2001 From: Lais Andrade Date: Fri, 21 Jul 2023 11:59:20 +0100 Subject: [PATCH] Add FrameworksVibratorServicesTests to android/os test mapping Add file-pattern presubmit test mapping for changes in vibrator-related sources from android.os.* and android.os.vibrator.*. This ensures that any changes in these source folders will also trigger FrameworksVibratorServicesTests, which relies on VibrationEffect and other client classes. Fix: 290760064 Test: atest --test-mapping \ services/core/java/android/os:presubmit Change-Id: Id677a39f9762ff050968be71217b31590c7a2d73 --- core/java/android/os/TEST_MAPPING | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/core/java/android/os/TEST_MAPPING b/core/java/android/os/TEST_MAPPING index ea5499f4d5cde..954ee3c99346e 100644 --- a/core/java/android/os/TEST_MAPPING +++ b/core/java/android/os/TEST_MAPPING @@ -13,6 +13,19 @@ {"exclude-annotation": "org.junit.Ignore"} ] }, + { + "file_patterns": [ + "[^/]*(Vibrator|Vibration)[^/]*\\.java", + "vibrator/.*" + ], + "name": "FrameworksVibratorServicesTests", + "options": [ + {"exclude-annotation": "android.platform.test.annotations.LargeTest"}, + {"exclude-annotation": "android.platform.test.annotations.FlakyTest"}, + {"exclude-annotation": "androidx.test.filters.FlakyTest"}, + {"exclude-annotation": "org.junit.Ignore"} + ] + }, { "file_patterns": ["Bugreport[^/]*\\.java"], "name": "BugreportManagerTestCases",