Add TEST_MAPPING for displayservicetests

- Run display tests when either display code is changed or when display
  tests code are changed.

Bug: 290761553
Test: atest --test-mapping services/core/java/com/android/server/display:presubmit

Merged-In: I55bb88ea2ab656d5fbdd3a23fdc2a6371384aec9
Change-Id: I83a7bb3167dc186f638356e909bfdfe03ee30b54
This commit is contained in:
Fiona Campbell
2023-07-21 14:10:06 +00:00
parent 0aa176c0c2
commit 150b8d7d85
2 changed files with 13 additions and 18 deletions

View File

@@ -1,15 +1,7 @@
{
"presubmit": [
{
"name": "FrameworksMockingServicesTests",
"options": [
{"include-filter": "com.android.server.display"},
{"exclude-annotation": "android.platform.test.annotations.FlakyTest"},
{"exclude-annotation": "androidx.test.filters.FlakyTest"}
]
},
{
"name": "FrameworksServicesTests",
"name": "DisplayServiceTests",
"options": [
{"include-filter": "com.android.server.display"},
{"exclude-annotation": "android.platform.test.annotations.FlakyTest"},
@@ -31,5 +23,14 @@
}
]
}
],
"postsubmit": [
{
"name": "DisplayServiceTests",
"options": [
{"include-filter": "com.android.server.display"},
{"exclude-annotation": "org.junit.Ignore"}
]
}
]
}
}

View File

@@ -1,13 +1,7 @@
{
"presubmit": [
"imports": [
{
"name": "DisplayServiceTests",
"options": [
{"include-filter": "com.android.server.display"},
{"exclude-annotation": "android.platform.test.annotations.FlakyTest"},
{"exclude-annotation": "androidx.test.filters.FlakyTest"},
{"exclude-annotation": "org.junit.Ignore"}
]
"path": "frameworks/base/services/core/java/com/android/server/display"
}
]
}