From 64d6d64c933711afbb32c4ecf91c168d82f8e407 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 3 Dec 2014 07:49:32 +0100 Subject: Squish: Let test continue instead of crashing on protocol error Change-Id: I3c862d26fbbdf124c0b347225cfd97e0748a0830 Reviewed-by: Robert Loehning --- tests/system/suite_tools/tst_codepasting/test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/system/suite_tools/tst_codepasting/test.py b/tests/system/suite_tools/tst_codepasting/test.py index c26e74ffb3..6aefb5ee7a 100644 --- a/tests/system/suite_tools/tst_codepasting/test.py +++ b/tests/system/suite_tools/tst_codepasting/test.py @@ -73,7 +73,10 @@ def main(): clickButton(waitForObject(":Send to Codepaster.Paste_QPushButton")) outputWindow = waitForObject(":Qt Creator_Core::OutputWindow") waitFor("'http://' in str(outputWindow.plainText)", 20000) - output = str(outputWindow.plainText).splitlines()[-1] + try: + output = str(outputWindow.plainText).splitlines()[-1] + except: + output = "" stdErrOut = aut.readStderr() match = re.search("^%s protocol error: (.*)$" % protocol, stdErrOut, re.MULTILINE) if match: -- cgit v1.2.1