Remove meaningless test.
It makes no sense for an android_library to be used as a tool in a genrule, and upcoming configuration changes make this difficult to set up.
@@ -2108,36 +2108,6 @@ public abstract class AndroidLibraryTest extends AndroidBuildViewTestCase {
assertThat(provider.getAar().getManifest().getPath().toString()).contains("processed_manifest");
}
- @Test
- public void testAndroidLibrary_srcsLessDepsHostConfigurationNoOverride() throws Exception {
- scratch.file(
- "java/srclessdeps/BUILD",
- "android_library(",
- " name = 'dep_for_foo',",
- " srcs = ['a.java'],",
- ")",
- "android_library(",
- " name = 'foo',",
- " deps = [':dep_for_foo'],",
- ")",
- "genrule(",
- " name = 'some_genrule',",
- " tools = [':foo'],",
- " outs = ['some_outs'],",
- " cmd = '$(location :foo) do_something $@',",
- ")");
-
- useConfiguration("--experimental_allow_android_library_deps_without_srcs");
- // genrule builds its tools using the host configuration.
- ConfiguredTarget genruleTarget = getConfiguredTarget("//java/srclessdeps:some_genrule");
- ConfiguredTarget target = getDirectPrerequisite(genruleTarget, "//java/srclessdeps:foo");
- assertThat(
- getConfiguration(target)
- .getFragment(AndroidConfiguration.class)
- .allowSrcsLessAndroidLibraryDeps(getRuleContext(target)))
- .isTrue();
- }
-
@Test
public void testAndroidLibraryValidatesProguardSpec() throws Exception {
scratch.file(
