[cost] Revise cost.make not to run infer parallel

Summary:
This diff avoids `infer report`s run parallel. If they do, there may be race for writing
`infer-out/.infer_runstate.json`, which result in `make test` failure in the next time.

Reviewed By: jvillard

Differential Revision: D21999073

fbshipit-source-id: 64df79cb6
master
Sungkeun Cho 5 years ago committed by Facebook GitHub Bot
parent bb6cc0e6be
commit 25825e77d4

@ -3,7 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
cost-issues.exp.test$(TEST_SUFFIX): $(INFER_OUT)/report.json $(INFER_BIN)
# We add issues.exp.test to recipe in order to avoid "infer report"s run parallel
cost-issues.exp.test$(TEST_SUFFIX): $(INFER_OUT)/report.json $(INFER_BIN) issues.exp.test$(TEST_SUFFIX)
$(QUIET)$(INFER_BIN) report -q --results-dir $(<D) \
$(INFERPRINT_COST_OPTIONS) $@

Loading…
Cancel
Save