Commit 43d1aaaf authored by prasadv's avatar prasadv Committed by Commit bot

Don't set goma_dir in config if path_to_goma is None.

BUG=394531
NOTRY=true

Review URL: https://codereview.chromium.org/512703005

Cr-Commit-Position: refs/heads/master@{#292283}
parent 49e25f54
...@@ -354,7 +354,8 @@ def _SetupAndRunPerformanceTest(config, path_to_file, path_to_goma): ...@@ -354,7 +354,8 @@ def _SetupAndRunPerformanceTest(config, path_to_file, path_to_goma):
try: try:
with Goma(path_to_goma) as _: with Goma(path_to_goma) as _:
config['use_goma'] = bool(path_to_goma) config['use_goma'] = bool(path_to_goma)
config['goma_dir'] = os.path.abspath(path_to_goma) if config['use_goma']:
config['goma_dir'] = os.path.abspath(path_to_goma)
_RunPerformanceTest(config, path_to_file) _RunPerformanceTest(config, path_to_file)
return 0 return 0
except RuntimeError, e: except RuntimeError, e:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment