OSDN Git Service

Squish: Add try/except to continue anyway
authorChristian Stenger <christian.stenger@nokia.com>
Thu, 5 Apr 2012 16:35:59 +0000 (18:35 +0200)
committerRobert Löhning <robert.loehning@nokia.com>
Thu, 5 Apr 2012 17:51:59 +0000 (19:51 +0200)
Change-Id: I24a51142988841da3aa156f6a5e6e239a6bd1914
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
tests/system/shared/project.py

index 43f5c34..b133a66 100644 (file)
@@ -343,7 +343,10 @@ def validType(sType, userDef):
 
 def __closeSubprocessByPushingStop__(sType):
     ensureChecked(":Qt Creator_AppOutput_Core::Internal::OutputPaneToggleButton")
-    waitForObject(":Qt Creator.Stop_QToolButton", 5000)
+    try:
+        waitForObject(":Qt Creator.Stop_QToolButton", 5000)
+    except:
+        pass
     playButton = verifyEnabled(":Qt Creator.ReRun_QToolButton", False)
     stopButton = verifyEnabled(":Qt Creator.Stop_QToolButton")
     if stopButton.enabled: