From c49f08045813099d48b9f4048f9495f9bd3e8d4f Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Fri, 26 Jul 2019 12:49:32 +0200 Subject: [PATCH] Squish: Fix handling of server issues in tst_codepasting ...properly this time, I hope. Change-Id: I4cf492f28c99fa15425c44f41656e6220f7a8715 Reviewed-by: Christian Stenger --- tests/system/suite_tools/tst_codepasting/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/system/suite_tools/tst_codepasting/test.py b/tests/system/suite_tools/tst_codepasting/test.py index 7329bdac2e4..4f1b4fedd32 100644 --- a/tests/system/suite_tools/tst_codepasting/test.py +++ b/tests/system/suite_tools/tst_codepasting/test.py @@ -53,11 +53,11 @@ def closeHTTPStatusAndPasterDialog(protocol, pasterDialog): if 'Service Unavailable' in text: test.warning(text) return True + test.log("Closed dialog without expected error.", text) except: t,v = sys.exc_info()[:2] test.warning("An exception occurred in closeHTTPStatusAndPasterDialog(): %s(%s)" % (str(t), str(v))) - test.log("Closed dialog without expected error.", text) return False def pasteFile(sourceFile, protocol):