diff options
author | 2016-09-13 09:29:39 +0000 | |
---|---|---|
committer | 2016-09-13 12:32:08 +0000 | |
commit | 4381a1d6e8f711957f430aac0c301acec6dfa0eb (patch) | |
tree | bd0fd6b070704fa253c930b4c631451e0a8dbe8a /src/test/java | |
parent | d6252e5824f9067f07b41fbe078420d1c43a1e3d (diff) |
Global cleanup change.
--
MOS_MIGRATED_REVID=132976702
Diffstat (limited to 'src/test/java')
3 files changed, 5 insertions, 13 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/analysis/AspectDefinitionTest.java b/src/test/java/com/google/devtools/build/lib/analysis/AspectDefinitionTest.java index 4bf2c55102..aeb989f086 100644 --- a/src/test/java/com/google/devtools/build/lib/analysis/AspectDefinitionTest.java +++ b/src/test/java/com/google/devtools/build/lib/analysis/AspectDefinitionTest.java @@ -31,7 +31,6 @@ import com.google.devtools.build.lib.packages.NativeAspectClass; import com.google.devtools.build.lib.packages.Rule; import com.google.devtools.build.lib.skylarkinterface.SkylarkModule; import com.google.devtools.build.lib.util.FileTypeSet; - import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; diff --git a/src/test/java/com/google/devtools/build/lib/skylark/SkylarkIntegrationTest.java b/src/test/java/com/google/devtools/build/lib/skylark/SkylarkIntegrationTest.java index a140187290..fa8beb1508 100644 --- a/src/test/java/com/google/devtools/build/lib/skylark/SkylarkIntegrationTest.java +++ b/src/test/java/com/google/devtools/build/lib/skylark/SkylarkIntegrationTest.java @@ -417,7 +417,7 @@ public class SkylarkIntegrationTest extends BuildViewTestCase { " return struct(runfiles = rf)", "", "custom_rule = rule(implementation = custom_rule_impl, executable = True,", - " attrs = {'data': attr.label_list(cfg=DATA_CFG, allow_files=True)})"); + " attrs = {'data': attr.label_list(cfg='data', allow_files=True)})"); scratch.file( "test/skylark/BUILD", diff --git a/src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleClassFunctionsTest.java b/src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleClassFunctionsTest.java index 3e677be5b9..78e4b4e51d 100644 --- a/src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleClassFunctionsTest.java +++ b/src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleClassFunctionsTest.java @@ -409,13 +409,6 @@ public class SkylarkRuleClassFunctionsTest extends SkylarkTestCase { } @Test - public void testAttrCfg_deprecated() throws Exception { - Attribute attr = evalAttributeDefinition("attr.label(cfg = HOST_CFG, allow_files = True)") - .build("a1"); - assertEquals(ConfigurationTransition.HOST, attr.getConfigurationTransition()); - } - - @Test public void testAttrCfg() throws Exception { Attribute attr = evalAttributeDefinition("attr.label(cfg = 'host', allow_files = True)") .build("a1"); @@ -664,8 +657,8 @@ public class SkylarkRuleClassFunctionsTest extends SkylarkTestCase { public void testTextMessageInvalidStructure() throws Exception { checkErrorContains( "Invalid text format, expected a struct, a string, a bool, or an int " - + "but got a ConfigurationTransition for struct field 'a'", - "struct(a=DATA_CFG).to_proto()"); + + "but got a function for struct field 'a'", + "struct(a=rule).to_proto()"); } private void checkJson(String from, String expected) throws Exception { @@ -711,8 +704,8 @@ public class SkylarkRuleClassFunctionsTest extends SkylarkTestCase { public void testJsonInvalidStructure() throws Exception { checkErrorContains( "Invalid text format, expected a struct, a string, a bool, or an int but got a " - + "ConfigurationTransition for struct field 'a'", - "struct(a=DATA_CFG).to_json()"); + + "function for struct field 'a'", + "struct(a=rule).to_json()"); } @Test |