Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 import os | |
| 2 import subprocess | |
| 3 import sys | |
| 4 | |
| 5 THIS_DIR = os.path.abspath(os.path.dirname(__file__)) | |
| 6 DAYDREAM_DIR = os.path.abspath(os.path.join(THIS_DIR, 'daydream_home')) | |
| 7 VR_SERVICES_DIR = os.path.abspath(os.path.join(THIS_DIR, 'vr_services')) | |
| 8 | |
| 9 def main(): | |
| 10 if 'DOWNLOAD_VR_TEST_APKS' not in os.environ: | |
| 11 return 0 | |
| 12 print subprocess.check_output(['download_from_google_storage', | |
|
Nico
2017/03/03 15:51:59
Use check_call instead of print check_output.
che
| |
| 13 '--bucket', 'chrome-vr-test-apks/daydream_home', | |
| 14 '-d', DAYDREAM_DIR]) | |
| 15 print subprocess.check_output(['download_from_google_storage', | |
| 16 '--bucket', 'chrome-vr-test-apks/vr_services', | |
| 17 '-d', VR_SERVICES_DIR]) | |
| 18 return 0 | |
| 19 | |
| 20 if __name__ == '__main__': | |
| 21 sys.exit(main()) | |
| OLD | NEW |