Skip to content
New issue

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

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

Already on GitHub? # to your account

FI-3732: Add scratch to runnable context #614

Merged
merged 1 commit into from
Feb 13, 2025
Merged
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: 2 additions & 2 deletions spec/runnable_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
raise StandardError, "No suite id defined. Add `let(:suite_id) { 'your_suite_id' }` to the spec"
end

def run(runnable, inputs = {})
def run(runnable, inputs = {}, scratch = {})
test_run_params = { test_session_id: test_session.id }.merge(runnable.reference_hash)
test_run = Inferno::Repositories::TestRuns.new.create(test_run_params)
inputs.each do |original_name, value|
Expand All @@ -25,7 +25,7 @@ def run(runnable, inputs = {})
)
end

Inferno::TestRunner.new(test_session:, test_run:).run(runnable)
Inferno::TestRunner.new(test_session:, test_run:).run(runnable, scratch)
end

# depth-first search looking for a runnable with a runtime id
Expand Down
Loading