Bug 1502483 raptor-test should test for presence of Git and emit an error message if it's not found r=rwood rwood

Differential Revision: https://phabricator.services.mozilla.com/D10054

--HG--
extra : moz-landing-system : lando
This commit is contained in:
florin.strugariu 2018-10-29 16:43:22 +00:00
parent c43fca0736
commit 2c1a3776aa

View File

@ -67,6 +67,13 @@ class RaptorRunner(MozbuildObject):
# Set up the external repo
external_repo_path = os.path.join(get_state_dir()[0], 'performance-tests')
try:
subprocess.check_output(['git', '--version'])
except Exception as ex:
print("Git is not available! Please install git and "
"ensure it is included in the terminal path")
raise ex
if not os.path.isdir(external_repo_path):
subprocess.check_call(['git', 'clone', BENCHMARK_REPOSITORY, external_repo_path])
else: