Skip to content

Commit

Permalink
add debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
saienduri committed Apr 16, 2024
1 parent 4bac11f commit c24792d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iree_tests/download_remote_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def download_azure_remote_file(test_dir: Path, remote_file: str):
) as blob_client:
blob_properties = blob_client.get_blob_properties()

cache_location = os.getenv("IREE_TEST_FILES", "")
cache_location = os.getenv("IREE_TEST_FILES", default="")
if cache_location == "":
os.environ["IREE_TEST_FILES"] = str(REPO_ROOT)
cache_location = REPO_ROOT
Expand All @@ -98,6 +98,7 @@ def download_azure_remote_file(test_dir: Path, remote_file: str):
with open(local_file_path, mode="wb") as local_blob:
download_stream = blob_client.download_blob(max_concurrency=4)
local_blob.write(download_stream.readall())
print(cache_location)
if cache_location != REPO_ROOT:
os.symlink(local_file_path, test_dir / remote_file_name)

Expand Down

0 comments on commit c24792d

Please sign in to comment.