Skip to content

Commit

Permalink
Use RSPEC_EXECUTABLE environmental variable if it's provided
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt authored and pboling committed Feb 4, 2025
1 parent d6dfa11 commit a040af5
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lib/turbo_tests/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,14 @@ def start_subprocess(env, extra_args, tests, process_id, record_runtime:)
env["RUBYOPT"] = ["-I#{File.expand_path("..", __dir__)}", ENV["RUBYOPT"]].compact.join(" ")
env["RSPEC_SILENCE_FILTER_ANNOUNCEMENTS"] = "1"

command_name = if ENV["BUNDLE_BIN_PATH"]
[ENV["BUNDLE_BIN_PATH"], "exec", "rspec"]
else
"rspec"
end
command_name =
if ENV["RSPEC_EXECUTABLE"]
ENV["RSPEC_EXECUTABLE"].split
elsif ENV["BUNDLE_BIN_PATH"]
[ENV["BUNDLE_BIN_PATH"], "exec", "rspec"]
else
"rspec"
end

record_runtime_options =
if record_runtime
Expand Down

0 comments on commit a040af5

Please sign in to comment.