Sha256: fe80219603157124890a8a2b2fed2b8b154a2ae6dbaf5aea459ac0b3d8d1271a
Contents?: true
Size: 828 Bytes
Versions: 4
Compression:
Stored size: 828 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
4 entries across 4 versions & 1 rubygems