Sha256: eb991424af559b37143df1edf4a02e6bff6396e7b1ce209515f598185f18b8c0

Contents?: true

Size: 799 Bytes

Versions: 99

Compression:

Stored size: 799 Bytes

Contents

require 'rubygems'
require 'drb'
$:.unshift(File.dirname(__FILE__) + "/../../..")  # directory of spork.rb
require 'spork'

class MagazineSlave
  include DRb::DRbUndumped
  attr_reader :id_num
  def initialize(id_num, test_framework_short_name)
    @id_num = id_num
    @test_framework = Spork::TestFramework.factory(STDOUT, STDERR,
                                                   test_framework_short_name)
#    ENV["DRB"] = 'true'
#    Spork.using_spork!
    return(nil) unless preload
  end

  def run(argv, stderr, stdout)
    $stdout, $stderr = stdout, stderr
    Spork.exec_each_run
    load @test_framework.helper_file
    @test_framework.run_tests(argv, stderr, stdout)
    puts "  <-- Slave(#{@id_num}) run done!"; stdout.flush
  end

  def preload
    @test_framework.preload
  end

end

Version data entries

99 entries across 99 versions & 7 rubygems

Version Path
panjiva-spork-0.8.6 lib/spork/run_strategy/magazine/magazine_slave.rb
panjiva-spork-0.8.5.1 lib/spork/run_strategy/magazine/magazine_slave.rb
panjiva-spork-0.8.5 lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.7.5 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.7.4 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.7.3 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
spork-1.0.0rc4 lib/spork/run_strategy/magazine/magazine_slave.rb
spork-1.0.0rc4-x86-mswin32 lib/spork/run_strategy/magazine/magazine_slave.rb
spork-1.0.0rc4-x86-mingw32 lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.7.2 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.7.1 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.7.0 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.6.9 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.6.8 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.6.7 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.6.6 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.6.5 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.6.4 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.6.3 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.6.2 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb