diff --git a/rakelib/bok_choy.rake b/rakelib/bok_choy.rake index 758695f1b8..e656400fb0 100644 --- a/rakelib/bok_choy.rake +++ b/rakelib/bok_choy.rake @@ -174,23 +174,32 @@ end namespace :'test:bok_choy' do - # Check that required services are running - task :check_services do + # Check that mongo is running + task :check_mongo do if not is_mongo_running() fail("Mongo is not running locally.") end + end + # Check that memcache is running + task :check_memcache do if not is_memcache_running() fail("Memcache is not running locally.") end + end + # Check that mysql is running + task :check_mysql do if not is_mysql_running() fail("MySQL is not running locally.") 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" - 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 sh("#{REPO_ROOT}/scripts/reset-test-db.sh")