Update testing tools (AppRTC, Go) to new versions

App engine is included in the AppRTC archive, so the separate archive is not needed anymore.
Mercurial is no longer necessary to include but it will be required during the vendoring step when the prebuilt archives are update.

The download/build scripts have been simplified accordingly.

The video quality test has been updated to work with the new appengine.

BUG=webrtc:7602

Review-Url: https://codereview.webrtc.org/2882073003
Cr-Commit-Position: refs/heads/master@{#18162}
This commit is contained in:
oprypin
2017-05-16 05:36:15 -07:00
committed by Commit bot
parent b3b2a8f424
commit 1d7392a45c
15 changed files with 192 additions and 302 deletions

View File

@ -9,7 +9,6 @@
"""Utilities for all our deps-management stuff."""
import hashlib
import os
import shutil
import sys
@ -34,32 +33,18 @@ def RunSubprocessWithRetry(cmd):
raise exception
def DownloadFilesFromGoogleStorage(path):
def DownloadFilesFromGoogleStorage(path, auto_platform=True):
print 'Downloading files in %s...' % path
extension = 'bat' if 'win32' in sys.platform else 'py'
cmd = ['download_from_google_storage.%s' % extension,
'--bucket=chromium-webrtc-resources',
'--auto_platform',
'--recursive',
'--directory', path]
if auto_platform:
cmd += ['--auto_platform', '--recursive']
subprocess.check_call(cmd)
def ComputeSHA1(path):
if not os.path.exists(path):
return 0
sha1 = hashlib.sha1()
file_to_hash = open(path, 'rb')
try:
sha1.update(file_to_hash.read())
finally:
file_to_hash.close()
return sha1.hexdigest()
# Code partially copied from
# https://cs.chromium.org#chromium/build/scripts/common/chromium_utils.py
def RemoveDirectory(*path):