DEV: Allow autospec to run full test suite in parallel (#11976)

The definition of 'multiple_files' did not consider that 'spec' refers to the entire `spec/` directory, and therefore includes multiple files
This commit is contained in:
David Taylor 2021-02-04 14:44:40 +00:00 committed by GitHub
parent dbb5c373ce
commit 414224ce07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ module Autospec
command = begin
line_specified = specs.split.any? { |s| s =~ /\:/ } # Parallel spec can't run specific line
multiple_files = specs.split.count > 1 # Only paralellize multiple files
multiple_files = specs.split.count > 1 || specs == "spec" # Only paralellize multiple files
if ENV["PARALLEL_SPEC"] == '1' && multiple_files && !line_specified
"bin/turbo_rspec #{args.join(" ")} #{specs.split.join(" ")}"
else