mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 02:25:34 +00:00
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:
parent
c43fca0736
commit
2c1a3776aa
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user