15 """Checks that the public headers match the API tests."""
16 src_path = input_api.os_path.dirname(input_api.PresubmitLocalPath())
17 check_script = input_api.os_path.join(
18 src_path,
'testing' ,
'tools' ,
'api_check.py')
19 cmd = [input_api.python3_executable, check_script]
21 input_api.subprocess.check_output(cmd)
23 except input_api.subprocess.CalledProcessError
as error:
24 return [output_api.PresubmitError(
'api_check.py failed:',
25 long_text=error.output)]