Skip to content

Commit

Permalink
CI: don't pass -n to parallel_rspec if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
aramprice committed Jan 6, 2025
1 parent 07ad7dc commit dbe7505
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tasks/spec.rake
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ namespace :spec do
rspec_opts = "SPEC_OPTS='--format documentation #{rspec_opts}'"

parallel_options = '--multiply-processes 0.5'
if (num_processes = ENV.fetch('NUM_PROCESSES', nil))
num_processes = ENV.fetch('NUM_PROCESSES', '')
unless num_processes.empty?
parallel_options += " -n #{num_processes}"
end

Expand Down

0 comments on commit dbe7505

Please sign in to comment.