summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/system/suite_tools/tst_codepasting/test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/system/suite_tools/tst_codepasting/test.py b/tests/system/suite_tools/tst_codepasting/test.py
index 01423f729d..8fd72a8c36 100644
--- a/tests/system/suite_tools/tst_codepasting/test.py
+++ b/tests/system/suite_tools/tst_codepasting/test.py
@@ -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: