inspec/test/runner/test_local.rb
Dominik Richter a72dc86442 bugfix: configure test runners correctly to updated backend
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-10-06 15:35:37 +02:00

23 lines
444 B
Ruby

# encoding: utf-8
require_relative 'helper'
require 'vulcano/backend'
backends = {}
backends[:local] = proc {
Vulcano::Backend.create('local', {}).backend
}
backends[:specinfra_local] = proc {
c = { 'backend' => 'exec' }
opt = Vulcano::Backend.target_config(c)
Vulcano::Backend.create('specinfra', opt).backend
}
tests = ARGV
backends.each do |type, get_backend|
tests.each do |test|
instance_eval(File.read(test))
end
end