Upload benchmark data to r8-test-results bucket
Change-Id: Ib72908109b6b4c3094e90a51f5b32f142159959e
diff --git a/tools/utils.py b/tools/utils.py
index 983706a..2b77ed5 100644
--- a/tools/utils.py
+++ b/tools/utils.py
@@ -402,9 +402,11 @@
return 'gsutil.py' if os.name != 'nt' else 'gsutil.py.bat'
-def upload_file_to_cloud_storage(source, destination):
- cmd = [get_gsutil(), 'cp']
- cmd += [source, destination]
+def upload_file_to_cloud_storage(source, destination, header=None):
+ cmd = [get_gsutil()]
+ if header:
+ cmd.extend(['-h', header])
+ cmd.extend(['cp', source, destination])
PrintCmd(cmd)
subprocess.check_call(cmd)