summaryrefslogtreecommitdiff
path: root/test-runner/Android.bp
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2018-01-12 16:08:35 +0000
committerPaul Duffin <paulduffin@google.com>2018-01-13 09:37:37 +0000
commita88eb29f9e0bd363fb3f1e02f379a54324a3e5ec (patch)
treee2a0a2a13fd60ead3bea8becacaea94eeba4b050 /test-runner/Android.bp
parent22bd015cbacfd67b0901733740a01ac4674d8f92 (diff)
Remove junit classes from legacy-android-test
A mistake during the conversion of the legacy-android-test target from Android.mk to Android.bp caused some junit classes to be accidentally included in the legacy-android-test target. That caused some warnings about duplicate classes to be output during the build. The junit classes are being included as part of the static library android.test.runner. This fixes that by adding a new android.test.runner-minus-junit which excludes the junit classes and then using that instead. Test: make checkbuild Change-Id: Icd00b38c64d3416a55c1055f9716ddb78ec278f8
Diffstat (limited to 'test-runner/Android.bp')
-rw-r--r--test-runner/Android.bp17
1 files changed, 17 insertions, 0 deletions
diff --git a/test-runner/Android.bp b/test-runner/Android.bp
index cddfef864324..d495e90ac1d5 100644
--- a/test-runner/Android.bp
+++ b/test-runner/Android.bp
@@ -29,6 +29,23 @@ java_library {
],
}
+// Build the android.test.runner-minus-junit library
+// =================================================
+// This is provided solely for use by the legacy-android-test module.
+java_library {
+ name: "android.test.runner-minus-junit",
+
+ srcs: ["src/android/**/*.java"],
+
+ no_framework_libs: true,
+ libs: [
+ "framework",
+ "legacy-test",
+ "android.test.mock",
+ "junit",
+ ],
+}
+
// Build the repackaged.android.test.runner library
// ================================================
java_library_static {