aboutsummaryrefslogtreecommitdiffstats
path: root/tests/system
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2020-06-11 13:33:41 +0200
committerRobert Loehning <robert.loehning@qt.io>2020-06-11 16:22:43 +0000
commit0575e1bbc214af3855aec44fefae12c87a741c30 (patch)
tree3dd7c0e3dc5550a94e9b8ad2df0195c7f60f5b9c /tests/system
parentaaacfb49450b7925e67d10cfc49690559db22160 (diff)
Squish: Fix finding commit
Change-Id: I87d2345babe91c449c20aec8c93dbafee5773d4f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'tests/system')
-rw-r--r--tests/system/suite_tools/tst_git_local/test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/system/suite_tools/tst_git_local/test.py b/tests/system/suite_tools/tst_git_local/test.py
index f009cf5fa0..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)