[infer][tests] fix unknown variable in issues.py

Summary: The variable `infer-out` was unknown

Reviewed By: jvillard

Differential Revision: D4203833

fbshipit-source-id: 6ac3134
master
Dulma Churchill 8 years ago committed by Facebook Github Bot
parent d808baba1a
commit 1ba52b71c1

@ -351,7 +351,7 @@ class AnalyzerWrapper(object):
infer_out = self.args.infer_out
json_report = os.path.join(infer_out, config.JSON_REPORT_FILENAME)
bugs_out = os.path.join(infer_out, config.BUGS_FILENAME)
issues.print_and_save_errors(self.args.project_root,
issues.print_and_save_errors(infer_out, self.args.project_root,
json_report, bugs_out,
self.args.pmd_xml)

@ -388,8 +388,8 @@ def collect_results(args, start_time, targets):
print('\n')
json_report = os.path.join(args.infer_out, config.JSON_REPORT_FILENAME)
bugs_out = os.path.join(args.infer_out, config.BUGS_FILENAME)
issues.print_and_save_errors(args.project_root, json_report, bugs_out,
args.pmd_xml)
issues.print_and_save_errors(args.infer_out, args.project_root,
json_report, bugs_out, args.pmd_xml)
stats['int']['total_time'] = int(round(utils.elapsed_time(start_time)))

@ -181,7 +181,8 @@ def _is_user_visible(project_root, report):
kind in [ISSUE_KIND_ERROR, ISSUE_KIND_WARNING, ISSUE_KIND_ADVICE])
def print_and_save_errors(project_root, json_report, bugs_out, pmd_xml):
def print_and_save_errors(infer_out, project_root, json_report, bugs_out,
pmd_xml):
errors = utils.load_json_from_path(json_report)
errors = [e for e in errors if _is_user_visible(project_root, e)]
console_out = _text_of_report_list(project_root, errors, bugs_out,

Loading…
Cancel
Save