Commit 062678a9 authored by Robert Loehning's avatar Robert Loehning

Squish: Add some debug logging to openDocument()

Change-Id: If34eaad1bd04a7d2409f0e00c217c7bd12add106
Reviewed-by: Christian Stenger's avatarChristian Stenger <christian.stenger@qt.io>
parent 4deee543
......@@ -386,8 +386,11 @@ def openDocument(treeElement):
expected = str(item.text).split("/")[-1]
if waitFor("expected in str(mainWindow.windowTitle)", 5000):
return True
test.log("Expected file (%s) was not being opened in openDocument()" % expected)
return False
except:
t,v = sys.exc_info()[:2]
test.log("An exception occurred in openDocument(): %s(%s)" % (str(t), str(v)))
return False
def earlyExit(details="No additional information"):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment