diff options
author | Kristina Chodorow <kchodorow@google.com> | 2016-12-08 15:47:13 +0000 |
---|---|---|
committer | Irina Iancu <elenairina@google.com> | 2016-12-08 16:34:34 +0000 |
commit | 443faf1a56ff64a76c49127e821d13e652d02255 (patch) | |
tree | 6a56373bb0c2a66c9d34ec80fe328303e469409f /tools/build_rules | |
parent | c75aaebc752cbf87bf4d2d65adbc1e60d7ff9f24 (diff) |
Global cleanup change.
--
PiperOrigin-RevId: 141438562
MOS_MIGRATED_REVID=141438562
Diffstat (limited to 'tools/build_rules')
-rw-r--r-- | tools/build_rules/test_rules.bzl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/build_rules/test_rules.bzl b/tools/build_rules/test_rules.bzl index 02fcf32ee4..ef93d62d8d 100644 --- a/tools/build_rules/test_rules.bzl +++ b/tools/build_rules/test_rules.bzl @@ -31,7 +31,7 @@ def success_target(ctx, msg): with actions that always succeed at execution time. """ exe = ctx.outputs.executable - dat = ctx.new_file(ctx.configuration.genfiles_dir, exe, ".dat") + dat = ctx.new_file(ctx.genfiles_dir, exe, ".dat") ctx.file_action( output=dat, content=msg) @@ -66,7 +66,7 @@ def failure_target(ctx, msg): """ ### fail(msg) ### <--- This would fail at analysis time. exe = ctx.outputs.executable - dat = ctx.new_file(ctx.configuration.genfiles_dir, exe, ".dat") + dat = ctx.new_file(ctx.genfiles_dir, exe, ".dat") ctx.file_action( output=dat, content=msg) @@ -221,7 +221,7 @@ def _rule_test_impl(ctx): fail(("rule %s doesn't provide attribute %s. " + "Its list of attributes is: %s") % (rule_name, k, dir(rule_))) - file_ = ctx.new_file(ctx.configuration.genfiles_dir, exe, "." + k) + file_ = ctx.new_file(ctx.genfiles_dir, exe, "." + k) files += [file_] regexp = provides[k] commands += [ @@ -257,7 +257,7 @@ def _file_test_impl(ctx): if content and matches != -1: fail("matches only makes sense with regexp") if content: - dat = ctx.new_file(ctx.configuration.genfiles_dir, exe, ".dat") + dat = ctx.new_file(ctx.genfiles_dir, exe, ".dat") ctx.file_action( output=dat, content=content) |