summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Desprez <jdesprez@google.com>2021-02-24 15:20:46 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-02-24 15:20:46 +0000
commit27d7b79d6d6063a42dda5a73caa6d59b71304b64 (patch)
tree6a756bbcef7dbcaa230d667243730e9957b56dc0
parent120c5bf00b70e3009920f0a6dfc668c136c61dd5 (diff)
parentce4c4881684075f820f27f6e66cd33754278c729 (diff)
downloaddalvik-27d7b79d6d6063a42dda5a73caa6d59b71304b64.tar.gz
Merge "Attempt to fix dx-tests to run in CI as a unit tests"
-rw-r--r--dx/junit-tests/Android.bp9
1 files changed, 8 insertions, 1 deletions
diff --git a/dx/junit-tests/Android.bp b/dx/junit-tests/Android.bp
index c508430b3..1fcc792c1 100644
--- a/dx/junit-tests/Android.bp
+++ b/dx/junit-tests/Android.bp
@@ -12,8 +12,15 @@ package {
java_test_host {
name: "dx-tests",
srcs: ["**/*.java"],
- libs: [
+ // Avoid anything depending on this target
+ visibility: ["//visibility:private"],
+ static_libs: [
"dx",
+ ],
+ libs: [
"junit-host",
],
+ test_options: {
+ unit_test: true,
+ },
}