Fix up dspec task for parallelization
This commit is contained in:
1 parent
9d6321685e
commit
baf4e036fb
3 files changed
+14
-11
No files matched your search
@@ -86,7 +86,7 @@ class Test
|
||||
def run_rscons(options = {})
|
||||
args = Array(options[:args]) || []
|
||||
if ENV["dist_specs"]
|
||||
exe = "#{OWD}/test/rscons.rb"
|
||||
exe = "#{OWD}/test_run/rscons.rb"
|
||||
else
|
||||
exe = "#{OWD}/bin/rscons"
|
||||
end
|
||||
@@ -248,7 +248,7 @@ def run_tests
|
||||
tests = @focused_tests.size > 0 ? @focused_tests : @tests
|
||||
queue = Queue.new
|
||||
threads = {}
|
||||
n_procs = `nproc`.to_i
|
||||
n_procs = `nproc`.to_i * 2
|
||||
failure = false
|
||||
loop do
|
||||
break if threads.empty? && tests.empty?
|
||||
|
||||
Reference in new issue
Block a user