Commit 3590eed8 authored by Christian Stenger's avatar Christian Stenger

Squish: Clean up before and after Qml debugging

Change-Id: I592842964984b51669b773a9af1fdd81df032f7b
Reviewed-by: default avatarRobert Loehning <robert.loehning@digia.com>
parent f37cf85d
......@@ -248,3 +248,16 @@ def verifyBreakPoint(bpToVerify):
else:
test.fatal("Expected a dict for bpToVerify - got '%s'" % className(bpToVerify))
return False
# this function removes the compiled qml-debug library from QtSDK (only necessary for Qt < 4.8)
def removeQmlDebugFolderIfExists():
paths = [os.path.join(sdkPath, "Desktop", "Qt", "474", "gcc", "qtc-qmldbg"),
os.path.join(sdkPath, "Desktop", "Qt", "4.7.4", "mingw", "qtc-qmldbg"),
os.path.join(sdkPath, "Desktop", "Qt", "4.7.4", "msvc2008", "qtc-qmldbg")
]
for path in paths:
if os.path.exists(path):
try:
shutil.rmtree(path)
except:
test.warning("Error while removing '%s'" % path)
......@@ -133,3 +133,9 @@ def safeClickTab(tab):
pass
test.fail("Tab %s is not being shown." % tab)
return False
def init():
removeQmlDebugFolderIfExists()
def cleanup():
removeQmlDebugFolderIfExists()
......@@ -91,3 +91,9 @@ def main():
else:
test.fatal("Setting breakpoints failed - leaving without testing.")
invokeMenuItem("File", "Exit")
def init():
removeQmlDebugFolderIfExists()
def cleanup():
removeQmlDebugFolderIfExists()
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