Browse files

Axe excess backtracery.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7770 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 8d7eb30 commit 98f50607e18d111873c181ad75a28cf9be68f589 @jeremy jeremy committed Oct 7, 2007
Showing with 4 additions and 6 deletions.
  1. +4 −6 railties/lib/tasks/testing.rake
View
10 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

0 comments on commit 98f5060

Please sign in to comment.