Commit 75ec15e8 authored by Robert Loehning's avatar Robert Loehning
Browse files

Squish: Fix tst_codepasting

Test crashed when there was unexpected output

Change-Id: I6fd56bf95d664cff5284e574db9b57f42b0e93cf
Reviewed-by: default avatarChristian Stenger <>
parent 9109dd46
......@@ -71,8 +71,8 @@ def main():
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 ="^%s protocol error: (.*)$" % protocol, stdErrOut, re.MULTILINE)
if match:
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