Skip to content

Commit

Permalink
Clean up starlark code (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
ob authored Jun 28, 2019
1 parent 7bd3f64 commit da178b8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bptestrunner/ios_bluepill_test_runner.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ def _get_template_substitutions(ctx):
"testrunner_binary": ctx.executable._testrunner.short_path,
}
if ctx.attr.config_file:
# we get a Target in config_file
config_file = ctx.attr.config_file.files.to_list()[0].path
config_file = ctx.file.config_file.short_path
else:
config_file = ""
subs["config_file"] = config_file
Expand All @@ -41,7 +40,7 @@ def _ios_bluepill_test_runner_impl(ctx):
)
runfiles = [ctx.file._testrunner]
if ctx.attr.config_file:
runfiles += ctx.attr.config_file.files.to_list()
runfiles += [ctx.file.config_file]
return [
AppleTestRunnerInfo(
test_runner_template = ctx.outputs.test_runner_template,
Expand Down

0 comments on commit da178b8

Please sign in to comment.