fix bug in unit test code

so that we correctly capture test results
This commit is contained in:
Dan Bode
2013-03-26 11:33:14 -07:00
committed by Dan Bode
parent 5d1542aa21
commit 8077585c29

View File

@@ -159,8 +159,8 @@ namespace :test do
desc 'run openstack puppet module unit tests'
task :unit do
status = command = "export MODULEPATH=#{base_dir}/modules;export GEM_HOME=#{base_dir}/.vendor;"
['cinder', 'nova', 'glance', 'openstack', 'keystone', 'horizon', 'swift'].collect do |proj|
command = "export MODULEPATH=#{base_dir}/modules;export GEM_HOME=#{base_dir}/.vendor;"
status = ['cinder', 'nova', 'glance', 'openstack', 'keystone', 'horizon', 'swift'].collect do |proj|
Dir.chdir("modules/#{proj}") do
local_command = command + "bundle exec rake spec_standalone"
puts local_command