Set --noincompatible_disallow_legacy_javainfo for Bazel tests.
@@ -1227,6 +1227,7 @@ public class JavaSkylarkApiTest extends BuildViewTestCase {
@Test
public void javaProviderFieldsAreCorrectAfterCreatingProvider() throws Exception {
+ setSkylarkSemanticsOptions("--noincompatible_disallow_legacy_javainfo");
scratch.file(
"foo/extension.bzl",
"def _impl(ctx):",
@@ -1278,6 +1279,7 @@ public class JavaSkylarkApiTest extends BuildViewTestCase {
@Test
public void javaProviderFieldsAreCorrectAfterCreatingProviderSomeEmptyFields() throws Exception {
+ setSkylarkSemanticsOptions("--noincompatible_disallow_legacy_javainfo");
scratch.file(
"foo/extension.bzl",
"def _impl(ctx):",
@@ -1318,6 +1320,7 @@ public class JavaSkylarkApiTest extends BuildViewTestCase {
@Test
public void constructJavaProvider() throws Exception {
+ setSkylarkSemanticsOptions("--noincompatible_disallow_legacy_javainfo");
scratch.file(
"foo/extension.bzl",
"def _impl(ctx):",
@@ -1368,6 +1371,7 @@ public class JavaSkylarkApiTest extends BuildViewTestCase {
@Test
public void constructJavaProviderWithAnotherJavaProvider() throws Exception {
+ setSkylarkSemanticsOptions("--noincompatible_disallow_legacy_javainfo");
scratch.file(
"foo/extension.bzl",
"def _impl(ctx):",
@@ -1409,6 +1413,7 @@ public class JavaSkylarkApiTest extends BuildViewTestCase {
@Test
public void constructJavaProviderJavaLibrary() throws Exception {
+ setSkylarkSemanticsOptions("--noincompatible_disallow_legacy_javainfo");
scratch.file(
"foo/extension.bzl",
"def _impl(ctx):",
