From b54c44e5a0e09e00513ba55e5241f3ca22d2ae69 Mon Sep 17 00:00:00 2001 From: Jules Villard Date: Tue, 3 Oct 2017 07:22:06 -0700 Subject: [PATCH] [cli] enable --fail-on-issue for commands other than run Summary: fixes #761 Reviewed By: mbouaziz Differential Revision: D5963675 fbshipit-source-id: 74990a9 --- infer/src/integration/Driver.ml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/infer/src/integration/Driver.ml b/infer/src/integration/Driver.ml index 55004a800..2df756b3c 100644 --- a/infer/src/integration/Driver.ml +++ b/infer/src/integration/Driver.ml @@ -582,8 +582,7 @@ let run_epilogue mode = if Config.developer_mode then StatsAggregator.generate_files () ; if Config.equal_analyzer Config.analyzer Config.Crashcontext then Crashcontext.crashcontext_epilogue ~in_buck_mode ; - if CLOpt.(equal_command Run) Config.command && Config.fail_on_bug then - fail_on_issue_epilogue () ) ; + if Config.fail_on_bug then fail_on_issue_epilogue () ) ; if Config.buck_cache_mode then clean_results_dir () ; ()