summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2023-01-04 14:40:50 -0800
committer Cole Faust <colefaust@google.com> 2023-01-11 11:34:50 -0800
commiteecebd1ed6732f3b9cd420d0ed21982649f8cae0 (patch)
tree40eed9bd757b8ff136181c37606ff670088307ce
parentfc1fc1619e0c68ad21be21784b6aa19d32ea0b6b (diff)
Re-enable ConfigLintCheckerTest
They can be re-enabled using a new feature to exclude certain classes from being loaded by tradefed. This is a resubmission of aosp/2376066 with the addition of excluding the META-INF folder to resolve an issue that we only see on CI for some reason. Bug: 240445172 Test: atest --host ConfigLintCheckerTest Change-Id: Id975e677ec27d170495ca59a340d5299711896be
-rw-r--r--SafetyCenter/ConfigLintChecker/Android.bp20
1 files changed, 14 insertions, 6 deletions
diff --git a/SafetyCenter/ConfigLintChecker/Android.bp b/SafetyCenter/ConfigLintChecker/Android.bp
index bbd1fccf6..f972fdb53 100644
--- a/SafetyCenter/ConfigLintChecker/Android.bp
+++ b/SafetyCenter/ConfigLintChecker/Android.bp
@@ -40,12 +40,6 @@ java_library_host {
java_test_host {
name: "ConfigLintCheckerTest",
- // TODO(b/239881504): Since this test was written, Android
- // Lint was updated, and now includes classes that were
- // compiled for java 15. The soong build doesn't support
- // java 15 yet, so we can't compile against "lint". Disable
- // the test until java 15 is supported.
- enabled: false,
srcs: [
"tests/java/**/*.kt",
],
@@ -57,5 +51,19 @@ java_test_host {
],
test_options: {
unit_test: true,
+ tradefed_options: [
+ {
+ // lint bundles in some classes that were built with older versions
+ // of libraries, and no longer load. Since tradefed tries to load
+ // all classes in the jar to look for tests, it crashes loading them.
+ // Exclude these classes from tradefed's search.
+ name: "exclude-paths",
+ value: "org/apache",
+ },
+ {
+ name: "exclude-paths",
+ value: "META-INF",
+ },
+ ],
},
}