Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FI-3367 Patch execute rollup #550

Merged
merged 2 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/inferno/apps/cli/execute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions lib/inferno/apps/cli/main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
Loading