Skip to content

Commit

Permalink
scalatest final-remove redundant coverage handling (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
ittaiz authored Jan 17, 2020
1 parent c81d7cd commit d367bdb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scala/private/phases/phase_final.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ def phase_library_final(ctx, p):
return [defaultInfo, p.compile.merged_provider, p.collect_jars.jars2labels] + p.compile.coverage.providers

def phase_scalatest_final(ctx, p):
coverage_runfiles = p.coverage_runfiles.coverage_runfiles
coverage_runfiles.extend(p.write_executable)
defaultInfo = DefaultInfo(
executable = p.declare_executable,
files = depset([p.declare_executable, ctx.outputs.jar]),
runfiles = ctx.runfiles(coverage_runfiles, transitive_files = p.runfiles.runfiles.files),
runfiles = ctx.runfiles(p.coverage_runfiles.coverage_runfiles, transitive_files = p.runfiles.runfiles.files),
)
return [defaultInfo, p.compile.merged_provider, p.collect_jars.jars2labels] + p.compile.coverage.providers

0 comments on commit d367bdb

Please sign in to comment.