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.5.0 lib/sauce/parallel.rb
sauce-3.4.9 lib/sauce/parallel.rb
sauce-3.4.8 lib/sauce/parallel.rb
sauce-3.4.7 lib/sauce/parallel.rb
sauce-3.4.6 lib/sauce/parallel.rb
sauce-3.4.5 lib/sauce/parallel.rb
sauce-3.4.4 lib/sauce/parallel.rb
sauce-3.4.3 lib/sauce/parallel.rb
sauce-3.4.2 lib/sauce/parallel.rb
sauce-3.4.1 lib/sauce/parallel.rb
sauce-3.4.0 lib/sauce/parallel.rb
sauce-3.3.2 lib/sauce/parallel.rb
sauce-3.3.1 lib/sauce/parallel.rb
sauce-3.3.0 lib/sauce/parallel.rb
sauce-3.2.0 lib/sauce/parallel.rb
sauce-3.1.3 lib/sauce/parallel.rb
sauce-3.1.2 lib/sauce/parallel.rb
sauce-3.1.1 lib/sauce/parallel.rb
sauce-3.1.0 lib/sauce/parallel.rb
sauce-3.0.6 lib/sauce/parallel.rb