[infer] report number of files analysed in the absence of *.cfg

Summary:
@public
We were counting the number of matches for `infer-out/captured/*/*.cfg`, but
some ways of running infer (eg, inferJ) do not produce cfgs. Instead, count the
number of directorys `infer-out/captured/*/`.

Test Plan:
  make -C infer java

reports the number of models analysed instead of 0.
master
Jules Villard 10 years ago
parent f62005a761
commit 26108302d2

@ -511,7 +511,7 @@ class Infer:
if self.args.buck and exit_status == os.EX_OK:
clean_infer_out(self.args.infer_out)
cfgs = os.path.join(self.args.infer_out, 'captured', '*', '*.cfg')
cfgs = os.path.join(self.args.infer_out, 'captured', '*', '')
captured_total = len(glob.glob(cfgs))
captured_plural = '' if captured_total <= 1 else 's'
print('\n%d file%s analyzed' % (captured_total, captured_plural))

Loading…
Cancel
Save