Skip to content

Commit

Permalink
[antlir2][image_test] expose inner_test as subtarget
Browse files Browse the repository at this point in the history
Summary:
This makes it very easy to find the path of the test and run it from a shell in
the container.

Test Plan: testhard

Reviewed By: justintrudell

Differential Revision: D50176038

fbshipit-source-id: d0ca12df955cefbb5871dd0c0fd4fe5649dea796
  • Loading branch information
vmagro authored and facebook-github-bot committed Oct 11, 2023
1 parent 2cdd1aa commit eae4a26
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion antlir/antlir2/testing/image_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ def _impl(ctx: AnalysisContext) -> list[Provider]:
RunInfo(test_cmd),
DefaultInfo(
script,
sub_targets = {"layer": ctx.attrs.layer.providers},
sub_targets = {
"inner_test": ctx.attrs.test.providers,
"layer": ctx.attrs.layer.providers,
},
),
]

Expand Down

0 comments on commit eae4a26

Please sign in to comment.