[buck] do not bin the contents of buck-out if --continue is passed

Summary: This allows the capture to continue in Buck flavors mode.

Reviewed By: dulmarod

Differential Revision: D5985376

fbshipit-source-id: e033006
master
Jules Villard 7 years ago committed by Facebook Github Bot
parent 2d644b36af
commit e5ee17e8aa

@ -30,6 +30,10 @@ base_group.add_argument('-o', '--out', metavar='<directory>',
type=utils.decode,
action=utils.AbsolutePathAction,
help='Set the Infer results directory')
base_group.add_argument('--continue', dest="continue_capture",
action='store_true',
help='''Continue the capture, do not delete previous
results''')
base_group.add_argument('-r', '--reactive', action='store_true',
help='''Analyze in reactive propagation mode
starting from changed files.''')

@ -236,7 +236,7 @@ class BuckAnalyzer:
raise e
def capture_with_flavors(self):
if self.keep_going:
if self.keep_going and not self.args.continue_capture:
self._move_buck_out()
ret = self._run_buck_with_flavors()
if not ret == os.EX_OK and not self.keep_going:

@ -285,6 +285,7 @@ let capture ~changed_files mode =
-> ["--blacklist-regex"; s]
| _
-> [] )
@ (if not Config.continue_capture then [] else ["--continue"])
@ ( match Config.java_jar_compiler with
| None
-> []

Loading…
Cancel
Save