diff options
author | Robert Loehning <robert.loehning@qt.io> | 2020-06-11 13:33:41 +0200 |
---|---|---|
committer | Robert Loehning <robert.loehning@qt.io> | 2020-06-11 16:22:43 +0000 |
commit | 0575e1bbc214af3855aec44fefae12c87a741c30 (patch) | |
tree | 3dd7c0e3dc5550a94e9b8ad2df0195c7f60f5b9c /tests/system | |
parent | aaacfb49450b7925e67d10cfc49690559db22160 (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.py | 2 |
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) |