Commit a0e3c97b authored by Christian Stenger's avatar Christian Stenger
Browse files

Squish: Handle rpc failure



Change-Id: I90669dac9de394e2d80be1a689b3b8b443296942
Reviewed-by: default avatarRobert Loehning <robert.loehning@digia.com>
parent 4b4181a9
......@@ -39,6 +39,9 @@ def verifyCloneLog(targetDir, canceled):
summary = "Failed."
else:
cloneLog = str(waitForObject(":Git Repository Clone.logPlainTextEdit_QPlainTextEdit").plainText)
if "fatal: The remote end hung up unexpectedly" in cloneLog:
test.warning("Remote end hung up unexpectedly.")
return False
# test for QTCREATORBUG-10112
test.compare(cloneLog.count("remote: Counting objects:"), 1)
test.compare(cloneLog.count("remote: Finding sources:"), 1)
......@@ -52,6 +55,7 @@ def verifyCloneLog(targetDir, canceled):
resultLabel = findObject(":Git Repository Clone.Result._QLabel")
test.verify(waitFor('str(resultLabel.text) == summary', 3000),
"Verifying expected result (%s)" % summary)
return True
def verifyVersionControlView(targetDir, canceled):
openVcsLog()
......@@ -100,7 +104,9 @@ def main():
verifyCloneLog(targetDir, True)
clickButton(":Git Repository Clone.Cancel_QPushButton")
else:
verifyCloneLog(targetDir, False)
if not verifyCloneLog(targetDir, False):
clickButton(":Git Repository Clone.Cancel_QPushButton")
continue
verifyFiles(targetDir)
try:
clickButton(waitForObject(button))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment