diff --git a/lib/inferno/apps/cli/execute.rb b/lib/inferno/apps/cli/execute.rb index 565e336e7..a57049b59 100644 --- a/lib/inferno/apps/cli/execute.rb +++ b/lib/inferno/apps/cli/execute.rb @@ -3,6 +3,7 @@ require_relative '../../utils/verify_runnable' require_relative '../../utils/persist_inputs' require_relative 'execute/console_outputter' +require_relative '../../result_summarizer' module Inferno module CLI @@ -63,7 +64,8 @@ def run(options) outputter.print_results(options, results) outputter.print_end_message(options) - exit(0) if results.all? { |result| result.result == 'pass' } + # TODO: respect customized rollups + exit(0) if Inferno::ResultSummarizer.new(results).summarize == 'pass' # exit(1) is for Thor failures # exit(2) is for shell builtin failures diff --git a/lib/inferno/apps/cli/main.rb b/lib/inferno/apps/cli/main.rb index cc5d4e487..1a08db1c4 100644 --- a/lib/inferno/apps/cli/main.rb +++ b/lib/inferno/apps/cli/main.rb @@ -76,6 +76,8 @@ def version Examples: + (These examples only work from within the inferno_core directory). + `bundle exec inferno execute --suite dev_validator \ --inputs "url:https://hapi.fhir.org/baseR4" \ patient_id:1234321`