aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test/unit/parallel.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/test/unit/parallel.rb')
-rw-r--r--lib/test/unit/parallel.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/test/unit/parallel.rb b/lib/test/unit/parallel.rb
index 232aa44151..32f15382ec 100644
--- a/lib/test/unit/parallel.rb
+++ b/lib/test/unit/parallel.rb
@@ -137,7 +137,10 @@ module Test
rescue Errno::EPIPE
rescue Exception => e
begin
- _report "bye", Marshal.dump(e)
+ trace = e.backtrace
+ err = ["#{trace.shift}: #{e.message} (#{e.class})"] + trace.map{|t| t.prepend("\t") }
+
+ _report "bye", Marshal.dump(err.join("\n"))
rescue Errno::EPIPE;end
exit
ensure