Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1730)

Unified Diff: third_party/gvr-android-sdk/test-apks/update.py

Issue 2726243002: Move VR test APK downloading behind an env var (Closed)
Patch Set: print check_output > check_call Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/gvr-android-sdk/test-apks/update.py
diff --git a/third_party/gvr-android-sdk/test-apks/update.py b/third_party/gvr-android-sdk/test-apks/update.py
new file mode 100644
index 0000000000000000000000000000000000000000..173d137d9567b4c7a37f2915ce2e8de487e0c297
--- /dev/null
+++ b/third_party/gvr-android-sdk/test-apks/update.py
@@ -0,0 +1,21 @@
+import os
+import subprocess
+import sys
+
+THIS_DIR = os.path.abspath(os.path.dirname(__file__))
+DAYDREAM_DIR = os.path.abspath(os.path.join(THIS_DIR, 'daydream_home'))
+VR_SERVICES_DIR = os.path.abspath(os.path.join(THIS_DIR, 'vr_services'))
+
+def main():
+ if 'DOWNLOAD_VR_TEST_APKS' not in os.environ:
+ return 0
+ subprocess.check_call(['download_from_google_storage',
+ '--bucket', 'chrome-vr-test-apks/daydream_home',
+ '-d', DAYDREAM_DIR])
+ subprocess.check_call(['download_from_google_storage',
+ '--bucket', 'chrome-vr-test-apks/vr_services',
+ '-d', VR_SERVICES_DIR])
+ return 0
+
+if __name__ == '__main__':
+ sys.exit(main())
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698