Squish: Fix logged output of tst_git_clone

The clone log contains escape as a character (unicode 0x1b) which
makes the creation of the results.xml fail. This patch removes these
for unquoted text logs.

Change-Id: Ia5312c4cf41dbf9c40732e48ebe4694f79f39bb2
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
This commit is contained in:
Christian Stenger
2014-01-14 16:31:09 +01:00
parent 597258c03e
commit bb0c02a0f9

View File

@@ -53,9 +53,11 @@ def verifyCloneLog(targetDir, canceled):
"Searching for clone directory in clone log")
result = "The process terminated with exit code 0."
summary = "Succeeded."
# cloneLog.plainText holds escape as character which makes QDom fail while printing the result
# removing these for letting Jenkins continue execute the test suite
test.xverify((result in str(cloneLog.plainText)),
"Searching for result (%s) in clone log:\n%s"
% (result, str(cloneLog.plainText)))
% (result, str(cloneLog.plainText).replace(unicode("\x1b"), "")))
test.compare(waitForObject(":Git Repository Clone.Result._QLabel").text, summary)
def verifyFiles(targetDir):