Skip to content

Commit

Permalink
Use PARALLEL_TESTS_EXECUTABLE environmental variable if it's provided
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Dec 4, 2024
1 parent aeae4ff commit ea12c5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/turbo_tests/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ 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"

if ENV["BUNDLE_BIN_PATH"]
if ENV["PARALLEL_TESTS_EXECUTABLE"]
command_name = ENV["PARALLEL_TESTS_EXECUTABLE"].split
elsif ENV["BUNDLE_BIN_PATH"]
command_name = [ENV["BUNDLE_BIN_PATH"], "exec", "rspec"]
else
command_name = "rspec"
Expand Down

0 comments on commit ea12c5b

Please sign in to comment.