Log the UI tree on error

The dump method doesn't actually print anything, just
returns the tree as a string.
This commit is contained in:
Daniel Narvaez 2013-06-19 19:20:44 +02:00
parent f9e80a90f7
commit 19bc2268d4

View File

@ -51,7 +51,7 @@ class UITestCase(unittest.TestCase):
try:
yield
except:
uitree.get_root().dump()
logging.debug(uitree.get_root().dump())
raise
finally:
process.terminate()