From fd5c2fbac7214a7954f03ba24ab9b864da52b04d Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Fri, 21 Jun 2019 11:00:28 +1000 Subject: [PATCH] DEV: make parallel spec optional with autospec At least temporarily while we refine the system keep parallel as optional --- lib/autospec/simple_runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/autospec/simple_runner.rb b/lib/autospec/simple_runner.rb index 12c8241b895..816a499b3ef 100644 --- a/lib/autospec/simple_runner.rb +++ b/lib/autospec/simple_runner.rb @@ -22,7 +22,7 @@ module Autospec ] command = begin - if ENV["PARALLEL_SPEC"] != '0' && + if ENV["PARALLEL_SPEC"] == '1' && !specs.split.any? { |s| puts s; s =~ /\:/ } # Parallel spec can't run specific groups "bin/turbo_rspec #{args.join(" ")} #{specs.split.join(" ")}"