forked from qt-creator/qt-creator
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user