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
classiccms-0.4.0 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.3.9 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.3.8 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.3.7 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.3.6 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.3.5 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.3.4 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.3.3 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.3.2 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.3.1 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.3.0 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
spork-0.9.2 lib/spork/run_strategy/magazine/magazine_slave.rb
classiccms-0.2.4.pre vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
spork-0.9.1 lib/spork/run_strategy/magazine/magazine_slave.rb
spork-1.0.0rc3 lib/spork/run_strategy/magazine/magazine_slave.rb
classicCMS-0.2.3 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classicCMS-0.2.2 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classicCMS-0.2.1 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classicCMS-0.2.0 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb
classicCMS-0.1.2 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave.rb