puppet-catalog-test 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
data/lib/puppet-catalog-test.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require "yaml"
|
2
2
|
require "puppet"
|
3
|
+
require "parallel"
|
3
4
|
|
4
5
|
require "puppet-catalog-test/test_case"
|
5
6
|
require "puppet-catalog-test/stdout_reporter"
|
@@ -117,8 +118,9 @@ module PuppetCatalogTest
|
|
117
118
|
@out.puts "[INFO] Using puppet #{Puppet::PUPPETVERSION}"
|
118
119
|
|
119
120
|
run_start = Time.now
|
121
|
+
proc_count = Parallel.processor_count
|
120
122
|
|
121
|
-
@test_cases
|
123
|
+
processed_test_cases = Parallel.map(@test_cases, :in_processes => proc_count) do |tc|
|
122
124
|
begin
|
123
125
|
tc_start_time = Time.now
|
124
126
|
|
@@ -140,8 +142,12 @@ module PuppetCatalogTest
|
|
140
142
|
|
141
143
|
@reporter.report_failed_test_case(tc)
|
142
144
|
end
|
145
|
+
|
146
|
+
tc
|
143
147
|
end
|
144
148
|
|
149
|
+
@test_cases = processed_test_cases
|
150
|
+
|
145
151
|
@total_duration = Time.now - run_start
|
146
152
|
|
147
153
|
@reporter.summarize(self)
|
data/puppet-catalog-test.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'puppet-catalog-test'
|
3
|
-
s.version = '0.2.
|
3
|
+
s.version = '0.2.1'
|
4
4
|
s.homepage = 'https://github.com/invadersmustdie/puppet-catalog-test/'
|
5
5
|
s.summary = 'Test all your puppet catalogs for compiler warnings and errors'
|
6
6
|
s.description = 'Test all your puppet catalogs for compiler warnings and errors.'
|