Fix dependency on APK used by test

Use data attribute to include the APK used for the test.

Bug: 138416078
Test: atest
Change-Id: Iffeca6c5f487c6a164acb9c880a5b6405eff424d
This commit is contained in:
Dan Shi
2019-07-26 14:16:43 -07:00
parent 434e4fdfdb
commit bcef6ae6bc
6 changed files with 5 additions and 7 deletions

View File

@@ -55,6 +55,8 @@ android_test {
resource_dirs: ["res"],
resource_zips: [":FrameworksCoreTests_apks_as_resources"],
data: [":BstatsTestApp"],
}
// Rules to copy all the test apks to the intermediate raw resource directory

View File

@@ -15,10 +15,6 @@
android_test_helper_app {
name: "BstatsTestApp",
test_suites: [
"device-tests",
],
static_libs: ["coretests-aidl"],
srcs: ["**/*.java"],

View File

@@ -78,6 +78,8 @@ android_test {
optimize: {
enabled: false,
},
data: [":JobTestApp"],
}
java_library {

View File

@@ -17,8 +17,6 @@ android_test_helper_app {
sdk_version: "current",
test_suites: ["device-tests"],
srcs: ["**/*.java"],
dex_preopt: {

View File

@@ -19,4 +19,5 @@ java_test_host {
libs: ["tradefed"],
test_suites: ["general-tests"],
required: ["preload-check-device"],
data: [":preload-check-device"],
}

View File

@@ -20,7 +20,6 @@ java_test_helper_library {
sdk_version: "current",
srcs: ["src/**/*.java"],
test_suites: ["general-tests"],
dex_preopt: {
enabled: false,
},