(input_api, output_api)
| 13 | |
| 14 | |
| 15 | def _CommonChecks(input_api, output_api): |
| 16 | results = [] |
| 17 | |
| 18 | # Validate the format of the mb_config.pyl file. |
| 19 | mb_script = input_api.os_path.join(input_api.PresubmitLocalPath(), '..', |
| 20 | '..', 'tools', 'mb', 'mb.py') |
| 21 | mb_config_path = input_api.os_path.join(input_api.PresubmitLocalPath(), |
| 22 | 'mb_config.pyl') |
| 23 | cmd = [input_api.python3_executable, mb_script, 'validate', '--config-file', |
| 24 | mb_config_path] |
| 25 | kwargs = {'cwd': input_api.PresubmitLocalPath()} |
| 26 | results.extend(input_api.RunTests([ |
| 27 | input_api.Command(name='mb_validate', |
| 28 | cmd=cmd, kwargs=kwargs, |
| 29 | message=output_api.PresubmitError)])) |
| 30 | |
| 31 | return results |
| 32 | |
| 33 | |
| 34 | def CheckChangeOnUpload(input_api, output_api): |
no test coverage detected
searching dependent graphs…