diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-10-07 06:09:54 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-10-07 06:09:54 +0000 |
commit | 98f50607e18d111873c181ad75a28cf9be68f589 (patch) | |
tree | 2d3d2e1a07fd23b3bc0a212f781380389c2c7ce2 /railties | |
parent | 8d7eb308981693817aa1101fc1ca3b4cd597afd0 (diff) | |
download | rails-98f50607e18d111873c181ad75a28cf9be68f589.tar.gz rails-98f50607e18d111873c181ad75a28cf9be68f589.tar.bz2 rails-98f50607e18d111873c181ad75a28cf9be68f589.zip |
Axe excess backtracery.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7770 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/tasks/testing.rake | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/railties/lib/tasks/testing.rake b/railties/lib/tasks/testing.rake index e60f961347..69e4b569f0 100644 --- a/railties/lib/tasks/testing.rake +++ b/railties/lib/tasks/testing.rake @@ -40,17 +40,15 @@ end desc 'Test all units and functionals' task :test do - %w(test:units test:functionals test:integration).collect do |task| + errors = %w(test:units test:functionals test:integration).collect do |task| begin Rake::Task[task].invoke nil rescue => e - e unless e.message.starts_with?('Command failed with status (1)') + task end - end.compact.each do |e| - puts e - puts " #{e.backtrace * " \n"}" - end + end.compact + puts "Errors running #{errors.to_sentence}!" if errors.any? end namespace :test do |