aboutsummaryrefslogtreecommitdiffstats
path: root/tests/system/suite_tools/tst_git_local/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/system/suite_tools/tst_git_local/test.py')
-rw-r--r--tests/system/suite_tools/tst_git_local/test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/system/suite_tools/tst_git_local/test.py b/tests/system/suite_tools/tst_git_local/test.py
index d5f99f6ea6..9703e450e8 100644
--- a/tests/system/suite_tools/tst_git_local/test.py
+++ b/tests/system/suite_tools/tst_git_local/test.py
@@ -87,7 +87,7 @@ def __clickCommit__(count):
# find commit
try:
# Commits are listed in reverse chronologic order, so we have to invert count
- line = filter(lambda line: line.startswith("commit"), content.splitlines())[-count]
+ line = filter(lambda line: line.startswith("commit"), content.splitlines())[-count].strip()
commit = line.split(" ", 1)[1]
except:
test.fail("Could not find the %d. commit - leaving test" % count)
@@ -176,7 +176,7 @@ def main():
commitMessages = [commit("Initial Commit", "Committed 6 files.")]
clickButton(waitForObject(":*Qt Creator.Clear_QToolButton"))
headerName = "pointless_header.h"
- addCPlusPlusFile(headerName, "C++ Header File", projectName + ".pro",
+ addCPlusPlusFile(headerName, "C/C++ Header File", projectName + ".pro",
addToVCS="Git", expectedHeaderName=headerName)
commitMessages.insert(0, commit("Added pointless header file", "Committed 2 files."))
readmeName = "README.txt"