Remove dependencies on the 1-variant fallback
When adding a dependencies, if the variants don't match, but the dependency only has 1 variant anyways, soong will always use that variant. This makes it hard to add new variants to soong, because the 1-variant fallback stops being used and you start getting missing variant errors. Make changes to bp files such that all dependencies correctly specify the variant to use. Bug: 372091092 Flag: EXEMPT refactor Test: m nothing Change-Id: I8d4f59044f268088b44357d27322abbdcdc3001c
This commit is contained in:
parent
3b0f86784a
commit
9ff8f4c81b
8 changed files with 8 additions and 8 deletions
|
|
@ -310,7 +310,7 @@ java_library_static {
|
|||
apex_available: ["com.android.tethering"],
|
||||
}
|
||||
|
||||
genrule {
|
||||
java_genrule {
|
||||
name: "connectivity-jarjar-rules",
|
||||
defaults: ["jarjar-rules-combine-defaults"],
|
||||
srcs: [
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ java_test_host {
|
|||
"mcts-wifi",
|
||||
"mcts-dnsresolver",
|
||||
],
|
||||
data: [":ConnectivityTestPreparer"],
|
||||
device_common_data: [":ConnectivityTestPreparer"],
|
||||
}
|
||||
|
||||
python_library_host {
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ java_library {
|
|||
// Combine Connectivity, NetworkStack and Tethering jarjar rules for coverage target.
|
||||
// The jarjar files are simply concatenated in the order specified in srcs.
|
||||
// jarjar stops at the first matching rule, so order of concatenation affects the output.
|
||||
genrule {
|
||||
java_genrule {
|
||||
name: "ConnectivityCoverageJarJarRules",
|
||||
defaults: ["jarjar-rules-combine-defaults"],
|
||||
srcs: [
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ java_test_host {
|
|||
"mts-tethering",
|
||||
"sts",
|
||||
],
|
||||
data: [
|
||||
device_common_data: [
|
||||
":CtsHostsideNetworkTestsApp",
|
||||
":CtsHostsideNetworkTestsApp2",
|
||||
":CtsHostsideNetworkCapTestsAppWithoutProperty",
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ python_test_host {
|
|||
test_options: {
|
||||
unit_test: false,
|
||||
},
|
||||
data: [
|
||||
device_common_data: [
|
||||
// Package the snippet with the mobly test
|
||||
":connectivity_multi_devices_snippet",
|
||||
],
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ java_test_host {
|
|||
"kotlin-test",
|
||||
"net-host-tests-utils",
|
||||
],
|
||||
data: [":FrameworksNetTests"],
|
||||
device_common_data: [":FrameworksNetTests"],
|
||||
test_suites: ["device-tests"],
|
||||
// It will get build error if just set enabled to true. It fails with "windows_common"
|
||||
// depends on some disabled modules that are used by this test and it looks like set
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ android_library {
|
|||
visibility: ["//packages/modules/Connectivity/tests:__subpackages__"],
|
||||
}
|
||||
|
||||
genrule {
|
||||
java_genrule {
|
||||
name: "frameworks-net-tests-jarjar-rules",
|
||||
defaults: ["jarjar-rules-combine-defaults"],
|
||||
srcs: [
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ python_test_host {
|
|||
"gen_jarjar.py",
|
||||
"gen_jarjar_test.py",
|
||||
],
|
||||
data: [
|
||||
device_common_data: [
|
||||
"testdata/test-jarjar-excludes.txt",
|
||||
// txt with Test classes to test they aren't included when added to jarjar excludes
|
||||
"testdata/test-jarjar-excludes-testclass.txt",
|
||||
|
|
|
|||
Loading…
Reference in a new issue