Skip to content

Commit

Permalink
[cost] Revise cost.make not to run infer parallel
Browse files Browse the repository at this point in the history
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
  • Loading branch information
skcho authored and facebook-github-bot committed Jun 11, 2020
1 parent bb6cc0e commit 25825e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion infer/tests/cost.make
Original file line number Diff line number Diff line change
Expand Up @@ -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) $@

Expand Down

0 comments on commit 25825e7

Please sign in to comment.