summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/driver/perf_notes.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/testsuite/driver/perf_notes.py b/testsuite/driver/perf_notes.py
index a468b7248c..c04c2da2c4 100644
--- a/testsuite/driver/perf_notes.py
+++ b/testsuite/driver/perf_notes.py
@@ -126,10 +126,11 @@ def get_perf_stats(commit: Union[GitRef, GitHash]=GitRef('HEAD'),
except subprocess.CalledProcessError:
return []
- log = log.strip('\n').split('\n')
- log = list(filter(None, log))
- log = [parse_perf_stat(stat_str) for stat_str in log]
- return log
+ return \
+ [ parse_perf_stat(stat_str)
+ for stat_str in log.strip('\n').split('\n')
+ if stat_str != ''
+ ]
# Check if a str is in a 40 character git commit hash.
_commit_hash_re = re.compile('[0-9a-f]' * 40)