Skip to content

Commit 7afb698

Browse files
committed
Pass CROSS_BUILD_DIR to gradle environment.
1 parent 871d87f commit 7afb698

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Android/android.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ def build_testbed(context):
401401
run(
402402
[gradlew, "--console", "plain", "packageDebug", "packageDebugAndroidTest"],
403403
cwd=TESTBED_DIR,
404+
env={}
404405
)
405406

406407

@@ -645,6 +646,10 @@ async def gradle_task(context):
645646
task_prefix = "connected"
646647
env["ANDROID_SERIAL"] = context.connected
647648

649+
# Ensure that CROSS_BUILD_DIR is in the Gradle environment, regardless
650+
# of whether it was set by environment variable or `--cross-build-dir`.
651+
env["CROSS_BUILD_DIR"] = CROSS_BUILD_DIR
652+
648653
if context.ci_mode:
649654
context.args[0:0] = [
650655
# See _add_ci_python_opts in libregrtest/main.py.

0 commit comments

Comments
 (0)