Hard code the chromedriver's version

It is not possible to run chromedriver for all targets.
This commit is contained in:
Cheng Zhao 2015-07-08 12:32:47 +08:00
parent cb92df687d
commit b7cdb00d09
4 changed files with 10 additions and 14 deletions

View file

@ -190,13 +190,6 @@ def get_atom_shell_version():
return 'v' + atom_gyp()['version%']
def get_chromedriver_version():
SOURCE_ROOT = os.path.abspath(os.path.join(__file__, '..', '..', '..'))
chromedriver = os.path.join(SOURCE_ROOT, 'dist', 'chromedriver')
output = subprocess.check_output([chromedriver, '-v']).strip()
return 'v' + output[13:output.rfind(' ')]
def parse_version(version):
if version[0] == 'v':
version = version[1:]