diff options
author | laurentlb <laurentlb@google.com> | 2017-11-30 12:03:31 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2017-11-30 12:05:29 -0800 |
commit | 5ddd804fac00ea075fbbafaa5aff9c0ecf56bc42 (patch) | |
tree | 5ac785d82bdd314a8f66fbae25f6017499def044 /src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleImplementationFunctionsTest.java | |
parent | 559a07d2dd88a53d6dac8bf2d77a28db44fd7659 (diff) |
Update tests to use the label-based load() syntax.
RELNOTES: None.
PiperOrigin-RevId: 177487913
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleImplementationFunctionsTest.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleImplementationFunctionsTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleImplementationFunctionsTest.java b/src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleImplementationFunctionsTest.java index 07079d9d09..af8b8aa2e6 100644 --- a/src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleImplementationFunctionsTest.java +++ b/src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleImplementationFunctionsTest.java @@ -462,7 +462,7 @@ public class SkylarkRuleImplementationFunctionsTest extends SkylarkTestCase { scratch.file( "test/BUILD", - "load('/test/empty', 'empty_action_rule')", + "load('//test:empty.bzl', 'empty_action_rule')", "empty_action_rule(name = 'my_empty_action',", " srcs = ['foo.in', 'other_foo.in'])", "action_listener(name = 'listener',", @@ -1673,7 +1673,7 @@ public class SkylarkRuleImplementationFunctionsTest extends SkylarkTestCase { ")"); scratch.file( "test/BUILD", - "load('/test/glob', 'glob_rule')", + "load('//test:glob.bzl', 'glob_rule')", "glob_rule(name = 'my_glob',", " srcs = ['foo.bar', 'other_foo.bar'])"); reporter.removeHandler(failFastHandler); @@ -1720,7 +1720,7 @@ public class SkylarkRuleImplementationFunctionsTest extends SkylarkTestCase { scratch.file("test/b.bar", "b"); scratch.file( "test/BUILD", - "load('/test/glob', 'glob_rule')", + "load('//test:glob.bzl', 'glob_rule')", "glob_rule(name = 'my_glob', srcs = glob(['*.bar']))"); ConfiguredTarget ct = getConfiguredTarget("//test:my_glob"); assertThat(ct).isNotNull(); @@ -1742,7 +1742,7 @@ public class SkylarkRuleImplementationFunctionsTest extends SkylarkTestCase { ); scratch.file( "test/BUILD", - "load('/test/rule', 'silly_rule')", + "load('//test:rule.bzl', 'silly_rule')", "silly_rule(name = 'silly')"); thrown.handleAssertionErrors(); // Compatibility with JUnit 4.11 thrown.expect(AssertionError.class); @@ -2016,7 +2016,7 @@ public class SkylarkRuleImplementationFunctionsTest extends SkylarkTestCase { public void testLazyArgsObjectImmutability() throws Exception { scratch.file( "test/BUILD", - "load('/test/rules', 'main_rule', 'dep_rule')", + "load('//test:rules.bzl', 'main_rule', 'dep_rule')", "dep_rule(name = 'dep')", "main_rule(name = 'main', deps = [':dep'])"); scratch.file( |