[report] Fix report script and inherit std file descriptors when invoking

Reviewed By: jvillard

Differential Revision: D4204865

fbshipit-source-id: 2a0ea7e
master
Josh Berdine 8 years ago committed by Facebook Github Bot
parent 23a8be5a1b
commit 1bbbf658de

@ -40,8 +40,8 @@ def main():
sys_argv = map(utils.decode, sys.argv)
args = arg_parser.parse_args(sys_argv[1:])
bugs_out = os.path.join(args.results_dir, config.BUGS_FILENAME)
issues.print_and_save_errors(args.project_root, args.issues_json, bugs_out,
args.pmd_xml)
issues.print_and_save_errors(args.results_dir, args.project_root,
args.issues_json, bugs_out, args.pmd_xml)
if __name__ == '__main__':
main()

@ -244,7 +244,7 @@ let report () =
"--project-root"; Config.project_root;
"--results-dir"; Config.results_dir
] in
Unix.waitpid (Unix.create_process ~prog ~args).pid |> ignore
Unix.waitpid (Unix.fork_exec ~prog ~args:(prog :: args) ()) |> ignore
let analyze = function
| Buck when Config.use_compilation_database = None ->

Loading…
Cancel
Save