From 471b7531a532caf8afee0261155cfda8bb66c2ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6hning?= Date: Thu, 9 Jan 2025 22:18:46 +0100 Subject: [PATCH] SquishTests: Improve tst_git_local for slow machines Change-Id: I8ad2b9a2e7118527a898bd6868e72346837d02c7 Reviewed-by: Christian Stenger --- tests/system/suite_tools/tst_git_local/test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/system/suite_tools/tst_git_local/test.py b/tests/system/suite_tools/tst_git_local/test.py index 44083878bed..d01ff7de22b 100644 --- a/tests/system/suite_tools/tst_git_local/test.py +++ b/tests/system/suite_tools/tst_git_local/test.py @@ -31,7 +31,9 @@ def commit(commitMessage, expectedLogMessage, uncheckUntracked=False): def verifyItemsInGit(commitMessages): gitEditor = waitForObject(":Qt Creator_Git::Internal::GitEditor") - waitFor("len(str(gitEditor.plainText)) > 0 and str(gitEditor.plainText) != 'Working...'", 20000) + if not waitFor("len(str(gitEditor.plainText))>0 and str(gitEditor.plainText)!='Working...'", + 40000): + test.warning("Waiting for GitEditor timed out.") plainText = str(gitEditor.plainText) verifyItemOrder(commitMessages, plainText) return plainText