update unit test rake task

update formatting
fix success check
This commit is contained in:
Dan Bode
2013-03-22 14:48:58 -07:00
committed by Dan Bode
parent 24678b9d1d
commit 2c0daa1777

View File

@@ -162,12 +162,12 @@ namespace :test do
status = command = "export MODULEPATH=#{base_dir}/modules;export GEM_HOME=#{base_dir}/.vendor;"
['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
system(local_command)
local_command = command + "bundle exec rake spec_standalone"
puts local_command
system(local_command)
end
end.uniq
status == ['true'] ? exit(0) : exit(1)
exit 1 if status != [true]
end
desc 'reset test environment'