Skip to content

Commit

Permalink
Dissuade utp_test users from passing args/--test_args and think…
Browse files Browse the repository at this point in the history
…ing it will do anything.

PiperOrigin-RevId: 616868870
Change-Id: I1593ae1e0311a3b3449c1e145a742427af9e8439
  • Loading branch information
A Googler authored and copybara-github committed Mar 18, 2024
1 parent e24e72a commit 26ec6c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions launcher/launcher.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ def _uuid_command(variable_name):
return "export {}=`cat /proc/sys/kernel/random/uuid`".format(variable_name)

def _utp_test_impl(ctx):
if ctx.attr.args:
fail("UTP does not process args. UTP must be configured through Starlark rules.")
extra_setup_commands = []
message = _utp_build_message(ctx)
config = ctx.actions.declare_file(ctx.attr.name + "_runner_config.proto")
Expand Down
4 changes: 2 additions & 2 deletions tools/utp/constants.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

visibility(["//test/..."])

JAR_PATH_LOCAL_ANDROID_DEVICE_PROVIDER = "../rules_jvm_external~5.3~maven~maven/com/google/testing/platform/android-device-provider-local/0.0.9-alpha01/processed_android-device-provider-local-0.0.9-alpha01.jar"
JAR_PATH_ANDROID_INSTRUMENTATION_DRIVER="../rules_jvm_external~5.3~maven~maven/com/google/testing/platform/android-driver-instrumentation/0.0.9-alpha01/processed_android-driver-instrumentation-0.0.9-alpha01.jar"
JAR_PATH_LOCAL_ANDROID_DEVICE_PROVIDER = "../rules_jvm_external~~maven~maven/com/google/testing/platform/android-device-provider-local/0.0.9-alpha01/processed_android-device-provider-local-0.0.9-alpha01.jar"
JAR_PATH_ANDROID_INSTRUMENTATION_DRIVER="../rules_jvm_external~~maven~maven/com/google/testing/platform/android-driver-instrumentation/0.0.9-alpha01/processed_android-driver-instrumentation-0.0.9-alpha01.jar"

TARGET_EMPTY_BINARY = "//test/launcher:empty_java_binary_deploy.jar"
JAR_PATH_EMPTY_BINARY="test/launcher/empty_java_binary_deploy.jar"

0 comments on commit 26ec6c5

Please sign in to comment.