440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
|
# File 'lib/chef-dk/command/verify.rb', line 440
def invoke_tests
components_to_test.each do |component|
verification_threads << Thread.new do
results = []
results << component.run_smoke_test
if config[:unit]
results << component.run_unit_test
end
if config[:integration]
results << component.run_integration_test
end
if results.any? { |r| r.exitstatus != 0 }
component_status = 1
@verification_status = 1
else
component_status = 0
end
{
component: component,
results: results,
component_status: component_status,
}
end
msg("Running verification for component '#{component.name}'")
end
end
|