Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/sugar/shell.py
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-12-27 20:40:54 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-12-27 20:40:54 (GMT)
commit3c7b0bfbf62b1d919ca6251f8a246e9cfe64ae41 (patch)
tree3d6c3910901c8fda5be820c44df143aa98b6dd62 /tests/sugar/shell.py
parent633edbdfbd03b56ae28c5970e09a15804e78ba2d (diff)
Dump the tree whenever there is an exception
Diffstat (limited to 'tests/sugar/shell.py')
-rw-r--r--tests/sugar/shell.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/sugar/shell.py b/tests/sugar/shell.py
index 515f98e..33917a9 100644
--- a/tests/sugar/shell.py
+++ b/tests/sugar/shell.py
@@ -1,6 +1,7 @@
import logging
import sys
import time
+import traceback
import tree
@@ -83,4 +84,9 @@ def main():
for activity in build_activities_list():
launch_and_stop_activity(activity)
-main()
+try:
+ main()
+except:
+ logging.error(traceback.format_exc())
+ logging.error("\n%s" % tree.get_root().dump())
+ raise