Revert "Use python executable to drive upload script"
This reverts commit 0a4085acfad532d5fb59a349f37cdaf36e4777cd.
R=sgjesse@google.com
Bug:
Change-Id: Ifd5bf62f339983253b6d1af4979c194aa90e2d4e
diff --git a/tools/test.py b/tools/test.py
index ba459e7..68fa829 100755
--- a/tools/test.py
+++ b/tools/test.py
@@ -112,7 +112,7 @@
return_code = gradle.RunGradle(gradle_args + ['-Pdex_vm=%s' % art_vm],
throw_on_failure=False)
if return_code != 0:
- if options.archive_failures:
+ if options.archive_failures and os.name != 'nt':
archive_failures()
return return_code
diff --git a/tools/utils.py b/tools/utils.py
index b7abb45..dab1dd1 100644
--- a/tools/utils.py
+++ b/tools/utils.py
@@ -56,7 +56,7 @@
def upload_html_to_cloud_storage(directory, destination):
# Upload and make the content encoding right for viewing directly
- cmd = [sys.executable, 'gsutil.py', 'cp', '-z', 'html', '-a',
+ cmd = ['gsutil.py', 'cp', '-z', 'html', '-a',
'public-read', '-R', directory, destination]
PrintCmd(cmd)
subprocess.check_call(cmd)