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:
Dieter Hsu
2020-06-18 23:11:31 +08:00
committed by Gavin Corkery
parent 31f9d09ba9
commit 6765448386
3 changed files with 107 additions and 0 deletions

View 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"
}
]
}

View 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"
}
]
}

View File

@@ -1,7 +1,43 @@
{
"presubmit": [
// TODO(159590499) add BugreportManagerTestCases
{
"file_patterns": ["Bugreport[^/]*\\.java"],
"name": "CtsBugreportTestCases",
"options": [
{
"exclude-annotation": "androidx.test.filters.LargeTest"
}
]
},
{
"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"
}
]
}