Lines Matching refs:output_dir
64 def document(args, output_dir, use_cdb): argument
70 crash_count = sum(1 for _ in read_crashes(output_dir))
72 for bug in read_bugs(output_dir, html_reports_available):
84 fragments.append(bug_summary(output_dir, bug_counter))
85 fragments.append(bug_report(output_dir, prefix))
87 fragments.append(crash_report(output_dir, prefix))
88 assemble_cover(output_dir, prefix, args, fragments)
90 copy_resource_files(output_dir)
92 shutil.copy(args.cdb, output_dir)
99 def assemble_cover(output_dir, prefix, args, fragments): argument
109 with open(os.path.join(output_dir, 'index.html'), 'w') as handle:
147 def bug_summary(output_dir, bug_counter): argument
150 name = os.path.join(output_dir, 'summary.html.fragment')
199 def bug_report(output_dir, prefix): argument
202 pretty = prettify_bug(prefix, output_dir)
203 bugs = (pretty(bug) for bug in read_bugs(output_dir, True))
205 name = os.path.join(output_dir, 'bugs.html.fragment')
246 def crash_report(output_dir, prefix): argument
249 pretty = prettify_crash(prefix, output_dir)
250 crashes = (pretty(crash) for crash in read_crashes(output_dir))
252 name = os.path.join(output_dir, 'crashes.html.fragment')
284 def read_crashes(output_dir): argument
288 for filename in glob.iglob(os.path.join(output_dir, 'failures',
292 def read_bugs(output_dir, html): argument
308 for filename in glob.iglob(os.path.join(output_dir, pattern)))
428 def prettify_bug(prefix, output_dir): argument
437 encode_value(bug, 'report_file', lambda x: escape(chop(output_dir, x)))
443 def prettify_crash(prefix, output_dir): argument
449 encode_value(crash, 'file', lambda x: escape(chop(output_dir, x)))
450 encode_value(crash, 'info', lambda x: escape(chop(output_dir, x)))
451 encode_value(crash, 'stderr', lambda x: escape(chop(output_dir, x)))
457 def copy_resource_files(output_dir): argument
462 shutil.copy(os.path.join(this_dir, 'resources', resource), output_dir)