Skip to content

Commit

Permalink
sd
Browse files Browse the repository at this point in the history
Signed-off-by: Kamoltat Sirivadhna <[email protected]>
  • Loading branch information
kamoltat committed Sep 8, 2023
1 parent fb5d5f5 commit 92d9f1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions teuthology/scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,8 @@ def _get_service_types(self, job):
# Lines like:
# 2014-08-22T20:07:18.668 ERROR:tasks.ceph:saw valgrind issue <kind>Leak_DefinitelyLost</kind> in /var/log/ceph/valgrind/osd.3.log.gz
valgrind_err_line = grep(os.path.join(job.path, "teuthology.log"), "</kind> in ")
valgrind_err_line = list(filter(None, valgrind_err_line)) # remove empty strings
valgrind_err_line = [line for line in valgrind_err_line if line.strip()] # remove blank space
# removes blank space, empty string and None
valgrind_err_line = [line for line in valgrind_err_line if line and line.strip()]
for line in valgrind_err_line:
match = re.search("<kind>(.+)</kind> in .+/(.+)", line)
if not match:
Expand Down

0 comments on commit 92d9f1d

Please sign in to comment.