Skylint: stop using ctx.outputs.executable.

Be explicit about the file create/to run instead of using
ctx.outputs.executable.
This commit is contained in:
Thomas Van Lenten 2018-05-01 14:15:25 -04:00
parent c8dae2702f
commit 809940bf89
1 changed files with 5 additions and 2 deletions

View File

@ -85,12 +85,15 @@ def _shell_spawn_e2e_test_impl(ctx):
"line tab\tcharacter $foo qu\"o\"te it'\\''s foo\\bar back`echo q`uote'",
'[[ "${output}" == "${expected}" ]]',
])
script_file = ctx.actions.declare_file("%s.sh" % (ctx.label.name))
ctx.actions.write(
output = ctx.outputs.executable,
output = script_file,
content = script_content,
is_executable = True,
)
return []
return [
DefaultInfo(executable=script_file),
]
shell_spawn_e2e_test = rule(
test = True,