blob: 78e4f0e4b5a4ea62ad339f705e55c8dde503d345 [file] [log] [blame] [edit]
"""This module defines the android_gm_test macro."""
load("//tools/testrunners/common/android:android_test.bzl", "android_test")
def android_gm_test(args = [], **kwargs):
"""Defines an Android GM test.
This macro is just a wrapper around the android_test macro with the necessary defaults for
Android GM tests. See the android_test macro documentation for details.
Args:
args: Any command-line arguments to pass to the test.
**kwargs: Any arguments to pass to the underlying android_test macro instance.
"""
android_test(
extra_args = args + [
"--outputDir",
# This environment variable is set by the adb_test_runner.go program.
"$ADB_TEST_OUTPUT_DIR",
],
save_output_files = True, # Save any produced PNG and JSON files as undeclared outputs.
**kwargs
)