Skip to content

Commit

Permalink
assign use case id based on when it's run
Browse files Browse the repository at this point in the history
Summary:
This is requested in [this post](https://fb.workplace.com/groups/2719099714926097/permalink/2988539217982144/), and see the post for related discussion.

We do a static mapping here due to the restriction in bazel and buck.

Note: STU case is not handled because currently citadel can't support STU.

Differential Revision: D68838361

fbshipit-source-id: 69253763eab88f2cee6540512cc373bf8d46f4ba
  • Loading branch information
dongyansu authored and facebook-github-bot committed Feb 4, 2025
1 parent b89b746 commit 6c0caa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prelude/android/android_instrumentation_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ ANDROID_EMULATOR_ABI_LABEL_PREFIX = "tpx-re-config::"
DEFAULT_ANDROID_SUBPLATFORM = "android-30"
DEFAULT_ANDROID_PLATFORM = "android-emulator"
DEFAULT_ANDROID_INSTRUMENTATION_TESTS_USE_CASE = "instrumentation-tests"
RIOT_USE_CASE = "riot"
RIOT_USE_CASES = ["horizon-os-diff", "horizon-os-other", "horizon-os-human-lease", "wearables-diff", "wearables-other", "wearables-human-lease"]
SUPPORTED_POOLS = ["EUREKA_POOL", "HOLLYWOOD_POOL", "STAGE_DELPHI_POOL", "PANTHER_POOL", "SEACLIFF_POOL"]
SUPPORTED_PLATFORMS = ["riot", "android-emulator"]
SUPPORTED_USE_CASES = [RIOT_USE_CASE, DEFAULT_ANDROID_INSTRUMENTATION_TESTS_USE_CASE]
SUPPORTED_USE_CASES = RIOT_USE_CASES + [DEFAULT_ANDROID_INSTRUMENTATION_TESTS_USE_CASE]

def android_instrumentation_test_impl(ctx: AnalysisContext):
android_toolchain = ctx.attrs._android_toolchain[AndroidToolchainInfo]
Expand Down

0 comments on commit 6c0caa2

Please sign in to comment.