Skip to content

Commit

Permalink
Amend a skylark test to attempt access of FilesToRunProvider.executable
Browse files Browse the repository at this point in the history
This serves a regression test of a previous breakage which broke SkylarkCallable method of FilesToRunProvider.

RELNOTES: None.
PiperOrigin-RevId: 198915920
  • Loading branch information
c-parsons authored and Copybara-Service committed Jun 1, 2018
1 parent 619c6f0 commit e21127b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,7 @@ public void testDefaultProvider() throws Exception {
" rule_default_runfiles = provider.default_runfiles,",
" rule_files = provider.files,",
" rule_files_to_run = provider.files_to_run,",
" rule_file_executable = provider.files_to_run.executable",
" )",
"bar_rule = rule(",
" implementation = _impl,",
Expand Down Expand Up @@ -1030,6 +1031,7 @@ public void testDefaultProvider() throws Exception {

assertThat(configuredTarget.get("rule_files")).isInstanceOf(SkylarkNestedSet.class);
assertThat(configuredTarget.get("rule_files_to_run")).isInstanceOf(FilesToRunProvider.class);
assertThat(configuredTarget.get("rule_file_executable")).isEqualTo(Runtime.NONE);
}

@Test
Expand Down

0 comments on commit e21127b

Please sign in to comment.