diff --git a/tests/system/suite_tools/tst_git_local/test.py b/tests/system/suite_tools/tst_git_local/test.py index 72943b3eb2e..cd9fed32e18 100644 --- a/tests/system/suite_tools/tst_git_local/test.py +++ b/tests/system/suite_tools/tst_git_local/test.py @@ -46,8 +46,9 @@ def commit(commitMessage, expectedLogMessage, uncheckUntracked=False): checkOrFixCommitterInformation('invalidEmailLabel', 'emailLineEdit', 'nobody@nowhere.com') clickButton(waitForObject(":splitter.Commit File(s)_VcsBase::QActionPushButton")) vcsLog = waitForObject("{type='QPlainTextEdit' unnamed='1' visible='1' " - "window=':Qt Creator_Core::Internal::MainWindow'}").plainText - test.verify(expectedLogMessage in str(vcsLog), "Searching for '%s' in log:\n%s " % (expectedLogMessage, vcsLog)) + "window=':Qt Creator_Core::Internal::MainWindow'}") + test.verify(waitFor('expectedLogMessage in str(vcsLog.plainText)', 2000), + "Searching for '%s' in log:\n%s " % (expectedLogMessage, vcsLog.plainText)) return commitMessage def verifyItemsInGit(commitMessages):