Skip to content

Commit db873ac

Browse files
committed
Ensure testbed builds also get the cross-build environment.
1 parent 7afb698 commit db873ac

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Android/android.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,15 @@ def setup_testbed():
398398
def build_testbed(context):
399399
setup_sdk()
400400
setup_testbed()
401+
402+
# Ensure that CROSS_BUILD_DIR is in the Gradle environment, regardless
403+
# of whether it was set by environment variable or `--cross-build-dir`.
404+
env = os.environ.copy()
405+
env["CROSS_BUILD_DIR"] = CROSS_BUILD_DIR
401406
run(
402407
[gradlew, "--console", "plain", "packageDebug", "packageDebugAndroidTest"],
403408
cwd=TESTBED_DIR,
404-
env={}
409+
env=env,
405410
)
406411

407412

0 commit comments

Comments
 (0)