From c243cff6c0de5a6dc02f1f8916fe25d93c2e1575 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Thu, 30 Jan 2020 13:21:14 -0800 Subject: [PATCH] Fix ci routes sync script target path old-commit-hash: a97ebc28b5c28130230fc9fec640f27338f3e50a --- selfdrive/test/update_ci_routes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/test/update_ci_routes.py b/selfdrive/test/update_ci_routes.py index 8b01a0d91..abfccd56c 100755 --- a/selfdrive/test/update_ci_routes.py +++ b/selfdrive/test/update_ci_routes.py @@ -24,6 +24,7 @@ SERVICE = BlockBlobService(_DATA_ACCOUNT_CI, sas_token=DEST_KEY) def sync_to_ci_public(route): print(f"Uploading {route}") key_prefix = route.replace('|', '/') + dongle_id = key_prefix.split('/')[0] if next(azureutil.list_all_blobs(SERVICE, "openpilotci", prefix=key_prefix), None) is not None: print("Already synced") @@ -35,7 +36,7 @@ def sync_to_ci_public(route): f"{BASEDIR}/external/bin/azcopy", "copy", "https://{}.blob.core.windows.net/{}/{}?{}".format(source_account, source_bucket, key_prefix, source_key), - "https://{}.blob.core.windows.net/{}?{}".format(_DATA_ACCOUNT_CI, "openpilotci", DEST_KEY), + "https://{}.blob.core.windows.net/{}/{}?{}".format(_DATA_ACCOUNT_CI, "openpilotci", dongle_id, DEST_KEY), "--recursive=true", "--overwrite=false", ]