lib/parallel_tests/cli.rb in parallel_tests-2.15.0 vs lib/parallel_tests/cli.rb in parallel_tests-2.16.0
- old
+ new
@@ -26,9 +26,10 @@
def execute_in_parallel(items, num_processes, options)
Tempfile.open 'parallel_tests-lock' do |lock|
progress_indicator = simulate_output_for_ci if options[:serialize_stdout]
+ ParallelTests.pids # setup the class vars here so we dont initialize in the threads
Parallel.map(items, :in_threads => num_processes) do |item|
result = yield(item)
if progress_indicator && progress_indicator.alive?
progress_indicator.exit
puts