[cli] enable --fail-on-issue for commands other than run

Summary: fixes #761

Reviewed By: mbouaziz

Differential Revision: D5963675

fbshipit-source-id: 74990a9
master
Jules Villard 7 years ago committed by Facebook Github Bot
parent 65a53a0c63
commit b54c44e5a0

@ -582,8 +582,7 @@ let run_epilogue mode =
if Config.developer_mode then StatsAggregator.generate_files () ; if Config.developer_mode then StatsAggregator.generate_files () ;
if Config.equal_analyzer Config.analyzer Config.Crashcontext then if Config.equal_analyzer Config.analyzer Config.Crashcontext then
Crashcontext.crashcontext_epilogue ~in_buck_mode ; Crashcontext.crashcontext_epilogue ~in_buck_mode ;
if CLOpt.(equal_command Run) Config.command && Config.fail_on_bug then if Config.fail_on_bug then fail_on_issue_epilogue () ) ;
fail_on_issue_epilogue () ) ;
if Config.buck_cache_mode then clean_results_dir () ; if Config.buck_cache_mode then clean_results_dir () ;
() ()

Loading…
Cancel
Save