[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) sys_argv = map(utils.decode, sys.argv)
args = arg_parser.parse_args(sys_argv[1:]) args = arg_parser.parse_args(sys_argv[1:])
bugs_out = os.path.join(args.results_dir, config.BUGS_FILENAME) bugs_out = os.path.join(args.results_dir, config.BUGS_FILENAME)
issues.print_and_save_errors(args.project_root, args.issues_json, bugs_out, issues.print_and_save_errors(args.results_dir, args.project_root,
args.pmd_xml) args.issues_json, bugs_out, args.pmd_xml)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

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

Loading…
Cancel
Save