[Fuchsia] Providing FUCHSIA_SDK_PATH env var for fuchsia lsc (flutter/engine#51234)
This change updates test-scripts with https://crrev.com/c/5347216 so that it can override the sdk location from an env var. The override location can be used by update_product_bundles to download emulator images of an unreleased sdk from gcs buckets. The process is used by fuchsia lsc (https://ci.chromium.org/ui/p/turquoise/builders/global.ci/sdk-core-linux-flutter), now it's failing due to the wrong product_bundle location being used. This change should have no impact to the existing builders since they do not use either gclient variables relevant. E.g. download_fuchsia_sdk and fuchsia_sdk_path. Bug: http://b/328110079 FYI: @mbrase [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
This commit is contained in:
@@ -30,6 +30,13 @@ def Main():
|
||||
assert platform.system() == 'Linux', 'Unsupported OS ' + platform.system()
|
||||
os.environ['FUCHSIA_SDK_ROOT'] = os.path.join(os.environ['SRC_ROOT'], 'fuchsia/sdk/linux/')
|
||||
|
||||
if os.getenv('DOWNLOAD_FUCHSIA_SDK') == 'True':
|
||||
sdk_path = os.environ['FUCHSIA_SDK_PATH']
|
||||
assert sdk_path.endswith('/linux-amd64/core.tar.gz')
|
||||
assert not sdk_path.startswith('/')
|
||||
os.environ['FUCHSIA_SDK_OVERRIDE'
|
||||
] = 'gs://fuchsia-artifacts/' + sdk_path[:-len('/linux-amd64/core.tar.gz')]
|
||||
|
||||
with subprocess.Popen(sys.argv[1:]) as proc:
|
||||
try:
|
||||
proc.wait()
|
||||
|
||||
Reference in New Issue
Block a user