forked from qt-creator/qt-creator
Squish: Fix tst_codepasting
Test crashed when there was unexpected output Change-Id: I6fd56bf95d664cff5284e574db9b57f42b0e93cf Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -71,8 +71,8 @@ def main():
|
||||
aut.readStderr()
|
||||
clickButton(waitForObject(":Send to Codepaster.Paste_QPushButton"))
|
||||
outputWindow = waitForObject(":Qt Creator_Core::OutputWindow")
|
||||
waitFor("not outputWindow.plainText.isEmpty()", 20000)
|
||||
output = str(outputWindow.plainText)
|
||||
waitFor("'http://' in str(outputWindow.plainText)", 20000)
|
||||
output = str(outputWindow.plainText).splitlines()[-1]
|
||||
stdErrOut = aut.readStderr()
|
||||
match = re.search("^%s protocol error: (.*)$" % protocol, stdErrOut, re.MULTILINE)
|
||||
if match:
|
||||
|
||||
Reference in New Issue
Block a user