Sha256: bdace3e1147b30e2242bfbb611eef6b798a72b91293bd49529b1526f70635c82

Contents?: true

Size: 366 Bytes

Versions: 59

Compression:

Stored size: 366 Bytes

Contents

require 'parallel_tests'

def start_tunnel_for_parallel_tests(c)
  c[:start_tunnel] = ParallelTests.first_process?
  if ParallelTests.first_process?
    at_exit do
      if ParallelTests.first_process?
        ParallelTests.wait_for_other_processes_to_finish
      end
    end
  else
    while not File.exist? "sauce_connect.ready"
      sleep 0.5
    end
  end
end

Version data entries

59 entries across 59 versions & 2 rubygems

Version Path
sauce-3.7.2 lib/sauce/parallel.rb
sauce-3.7.1 lib/sauce/parallel.rb
sauce-3.7.0 lib/sauce/parallel.rb
sauce-3.5.11 lib/sauce/parallel.rb
sauce-3.5.10 lib/sauce/parallel.rb
sauce-3.5.9 lib/sauce/parallel.rb
sauce-3.5.8 lib/sauce/parallel.rb
sauce-3.5.7 lib/sauce/parallel.rb
sauce_ruby-3.5.11 lib/sauce/parallel.rb
sauce_ruby-3.5.10 lib/sauce/parallel.rb
sauce_ruby-3.5.9 lib/sauce/parallel.rb
sauce_ruby-3.5.8 lib/sauce/parallel.rb
sauce_ruby-3.5.7 lib/sauce/parallel.rb
sauce_ruby-3.5.6 lib/sauce/parallel.rb
sauce-3.5.6 lib/sauce/parallel.rb
sauce-3.5.5 lib/sauce/parallel.rb
sauce-3.5.4 lib/sauce/parallel.rb
sauce-3.5.3 lib/sauce/parallel.rb
sauce-3.5.2 lib/sauce/parallel.rb
sauce-3.5.1 lib/sauce/parallel.rb