Commit b69ae300 by Christine Lytwynec

Updated test:bok-choy:setup task to not require that memchache or mongo be running

parent c5ef1255
...@@ -174,23 +174,32 @@ end ...@@ -174,23 +174,32 @@ end
namespace :'test:bok_choy' do namespace :'test:bok_choy' do
# Check that required services are running # Check that mongo is running
task :check_services do task :check_mongo do
if not is_mongo_running() if not is_mongo_running()
fail("Mongo is not running locally.") fail("Mongo is not running locally.")
end end
end
# Check that memcache is running
task :check_memcache do
if not is_memcache_running() if not is_memcache_running()
fail("Memcache is not running locally.") fail("Memcache is not running locally.")
end end
end
# Check that mysql is running
task :check_mysql do
if not is_mysql_running() if not is_mysql_running()
fail("MySQL is not running locally.") fail("MySQL is not running locally.")
end end
end end
# Check that all required services are running
task :check_services => [:check_mongo, :check_memcache, :check_mysql]
desc "Process assets and set up database for bok-choy tests" desc "Process assets and set up database for bok-choy tests"
task :setup => [:check_services, :install_prereqs, BOK_CHOY_LOG_DIR] do task :setup => [:check_mysql, :install_prereqs, BOK_CHOY_LOG_DIR] do
# Reset the database # Reset the database
sh("#{REPO_ROOT}/scripts/reset-test-db.sh") sh("#{REPO_ROOT}/scripts/reset-test-db.sh")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment