OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 Google Inc. All rights reserved. | 2 # Copyright (c) 2012 Google Inc. All rights reserved. |
3 # | 3 # |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 | 116 |
117 def log_error(message): | 117 def log_error(message): |
118 print 'ERROR: ' + message | 118 print 'ERROR: ' + message |
119 | 119 |
120 def error_excepthook(exctype, value, traceback): | 120 def error_excepthook(exctype, value, traceback): |
121 print 'ERROR:' | 121 print 'ERROR:' |
122 sys.__excepthook__(exctype, value, traceback) | 122 sys.__excepthook__(exctype, value, traceback) |
123 sys.excepthook = error_excepthook | 123 sys.excepthook = error_excepthook |
124 | 124 |
125 application_descriptors = ['devtools.json', 'toolbox.json'] | 125 application_descriptors = ['devtools.json', 'inspector.json', 'toolbox.json'] |
126 loader = modular_build.DescriptorLoader(devtools_frontend_path) | 126 loader = modular_build.DescriptorLoader(devtools_frontend_path) |
127 descriptors = loader.load_applications(application_descriptors) | 127 descriptors = loader.load_applications(application_descriptors) |
128 modules_by_name = descriptors.modules | 128 modules_by_name = descriptors.modules |
129 | 129 |
130 | 130 |
131 def hasErrors(output): | 131 def hasErrors(output): |
132 return re.search(error_warning_regex, output) != None | 132 return re.search(error_warning_regex, output) != None |
133 | 133 |
134 | 134 |
135 def verify_jsdoc_extra(additional_files): | 135 def verify_jsdoc_extra(additional_files): |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 | 466 |
467 if errors_found: | 467 if errors_found: |
468 print 'ERRORS DETECTED' | 468 print 'ERRORS DETECTED' |
469 | 469 |
470 os.remove(injectedScriptSourceTmpFile) | 470 os.remove(injectedScriptSourceTmpFile) |
471 os.remove(injectedScriptCanvasModuleSourceTmpFile) | 471 os.remove(injectedScriptCanvasModuleSourceTmpFile) |
472 os.remove(compiler_args_file.name) | 472 os.remove(compiler_args_file.name) |
473 os.remove(injected_script_externs_file.name) | 473 os.remove(injected_script_externs_file.name) |
474 os.remove(protocol_externs_file) | 474 os.remove(protocol_externs_file) |
475 shutil.rmtree(modules_dir, True) | 475 shutil.rmtree(modules_dir, True) |
OLD | NEW |