Add android user home for android sdk dep.
Android tests were using the default location which had two different
issues: it was writing state outside of the test chroot, and it was
deleting the state after the test execution. This change sets the
android home to a tmp directory that is deleted after the task is
complete.
Bug: https://github.com/flutter/flutter/issues/126557
Change-Id: I7237b5eaccdfa252930faa5b293bf1cc17fbf937
Reviewed-on: https://flutter-review.googlesource.com/c/recipes/+/44380
Reviewed-by: Keyong Han <keyonghan@google.com>
Reviewed-by: Ricardo Amador <ricardoamador@google.com>
Commit-Queue: Godofredo Contreras <godofredoc@google.com>
Reviewed-by: Gray Mackall <mackall@google.com>
diff --git a/recipe_modules/flutter_deps/examples/full.expected/mac.json b/recipe_modules/flutter_deps/examples/full.expected/mac.json
index e606660..e83c252 100644
--- a/recipe_modules/flutter_deps/examples/full.expected/mac.json
+++ b/recipe_modules/flutter_deps/examples/full.expected/mac.json
@@ -543,7 +543,7 @@
"cipd",
"ensure",
"-root",
- "[CLEANUP]/tmp_tmp_1",
+ "[CLEANUP]/tmp_tmp_3",
"-ensure-file",
"flutter/codesign/${platform} latest",
"-max-threads",
@@ -685,7 +685,7 @@
"cipd",
"ensure",
"-root",
- "[CLEANUP]/tmp_tmp_2/curl",
+ "[CLEANUP]/tmp_tmp_4/curl",
"-ensure-file",
"flutter_internal/tools/curl/${platform} latest",
"-max-threads",
@@ -791,6 +791,7 @@
"ANDROID_HOME": "[CACHE]/android",
"ANDROID_NDK_PATH": "[CACHE]/android/ndk-bundle",
"ANDROID_SDK_ROOT": "[CACHE]/android",
+ "ANDROID_USER_HOME": "[CLEANUP]/tmp_tmp_2",
"CHROME_EXECUTABLE": "[CACHE]/chrome/chrome/chrome-mac/Chromium.app/Contents/MacOS/Chromium",
"CHROME_NO_SANDBOX": "true",
"FIREFOX_EXECUTABLE": "[CACHE]/firefox/firefox",
@@ -820,11 +821,11 @@
"[CACHE]/chrome/drivers",
"[START_DIR]/firebase",
"[CACHE]/cmake/bin",
- "[CLEANUP]/tmp_tmp_1",
+ "[CLEANUP]/tmp_tmp_3",
"[CACHE]/cosign/bin",
"[CACHE]/ninja",
"[CACHE]/clang/bin",
- "[CLEANUP]/tmp_tmp_2/curl"
+ "[CLEANUP]/tmp_tmp_4/curl"
]
},
"name": "Install jazzy.Ruby version",