Enable bug report tests in pre/postsubmit
Bug: 155604488
Test: atest --test-mapping --dry-run \
services/core/java/com/android/server/os:presubmit
Test: atest --test-mapping --dry-run core/java/android/os:presubmit
Change-Id: I054d05d4fa8ff02f1c404d0883c382a2d5911f88
Merged-In: I054d05d4fa8ff02f1c404d0883c382a2d5911f88
(cherry picked from commit 848113e595)
This commit is contained in:
committed by
Gavin Corkery
parent
31f9d09ba9
commit
6765448386
40
core/java/android/os/TEST_MAPPING
Normal file
40
core/java/android/os/TEST_MAPPING
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
"presubmit": [
|
||||||
|
// TODO(159590499) add BugreportManagerTestCases
|
||||||
|
{
|
||||||
|
"file_patterns": ["Bugreport[^/]*\\.java"],
|
||||||
|
"name": "CtsBugreportTestCases",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"exclude-annotation": "androidx.test.filters.LargeTest"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file_patterns": ["Bugreport[^/]*\\.java"],
|
||||||
|
"name": "ShellTests",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"exclude-annotation": "androidx.test.filters.LargeTest"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"exclude-annotation": "androidx.test.filters.FlakyTest"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"postsubmit": [
|
||||||
|
{
|
||||||
|
"file_patterns": ["Bugreport[^/]*\\.java"],
|
||||||
|
"name": "BugreportManagerTestCases"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file_patterns": ["Bugreport[^/]*\\.java"],
|
||||||
|
"name": "CtsBugreportTestCases"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file_patterns": ["Bugreport[^/]*\\.java"],
|
||||||
|
"name": "ShellTests"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
31
packages/Shell/TEST_MAPPING
Normal file
31
packages/Shell/TEST_MAPPING
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"presubmit": [
|
||||||
|
{
|
||||||
|
"name": "CtsBugreportTestCases",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"exclude-annotation": "androidx.test.filters.LargeTest"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ShellTests",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"exclude-annotation": "androidx.test.filters.LargeTest"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"exclude-annotation": "androidx.test.filters.FlakyTest"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"postsubmit": [
|
||||||
|
{
|
||||||
|
"name": "CtsBugreportTestCases"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ShellTests"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,7 +1,43 @@
|
|||||||
{
|
{
|
||||||
"presubmit": [
|
"presubmit": [
|
||||||
|
// TODO(159590499) add BugreportManagerTestCases
|
||||||
|
{
|
||||||
|
"file_patterns": ["Bugreport[^/]*\\.java"],
|
||||||
|
"name": "CtsBugreportTestCases",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"exclude-annotation": "androidx.test.filters.LargeTest"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "CtsUsbTests"
|
"name": "CtsUsbTests"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file_patterns": ["Bugreport[^/]*\\.java"],
|
||||||
|
"name": "ShellTests",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"exclude-annotation": "androidx.test.filters.LargeTest"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"exclude-annotation": "androidx.test.filters.FlakyTest"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"postsubmit": [
|
||||||
|
{
|
||||||
|
"file_patterns": ["Bugreport[^/]*\\.java"],
|
||||||
|
"name": "BugreportManagerTestCases"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file_patterns": ["Bugreport[^/]*\\.java"],
|
||||||
|
"name": "CtsBugreportTestCases"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file_patterns": ["Bugreport[^/]*\\.java"],
|
||||||
|
"name": "ShellTests"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user