diff options
author | Ross Burton <ross.burton@arm.com> | 2022-12-05 14:59:32 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-08 10:48:36 +0000 |
commit | d9b5b8cb21996e052d8f5f0e98c92e2421832790 (patch) | |
tree | ad87b2c2ed7c24dc218b423f698ce0b4da98b305 /scripts/lib | |
parent | 7c86d2d9962254db27a2f87617991842713699d8 (diff) | |
download | poky-d9b5b8cb21996e052d8f5f0e98c92e2421832790.tar.gz |
lib/buildstats: fix parsing of trees with reduced_proc_pressure directories
The /proc/pressure support in buildstats is creating directories in the
buildstats tree called reduced_proc_pressure, which confuses the parsing
logic as that cannot be parsed as a name-epoc-version-revision tuple.
Explicitly skip this directory to solve the problem.
(From OE-Core rev: 24f0331f0b7e51161b1fa43d4592b491d2037fe9)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/buildstats.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/buildstats.py b/scripts/lib/buildstats.py index c69b5bf4d7..3b76286ba5 100644 --- a/scripts/lib/buildstats.py +++ b/scripts/lib/buildstats.py | |||
@@ -8,7 +8,7 @@ import json | |||
8 | import logging | 8 | import logging |
9 | import os | 9 | import os |
10 | import re | 10 | import re |
11 | from collections import namedtuple,OrderedDict | 11 | from collections import namedtuple |
12 | from statistics import mean | 12 | from statistics import mean |
13 | 13 | ||
14 | 14 | ||
@@ -238,7 +238,7 @@ class BuildStats(dict): | |||
238 | subdirs = os.listdir(path) | 238 | subdirs = os.listdir(path) |
239 | for dirname in subdirs: | 239 | for dirname in subdirs: |
240 | recipe_dir = os.path.join(path, dirname) | 240 | recipe_dir = os.path.join(path, dirname) |
241 | if not os.path.isdir(recipe_dir): | 241 | if dirname == "reduced_proc_pressure" or not os.path.isdir(recipe_dir): |
242 | continue | 242 | continue |
243 | name, epoch, version, revision = cls.split_nevr(dirname) | 243 | name, epoch, version, revision = cls.split_nevr(dirname) |
244 | bsrecipe = BSRecipe(name, epoch, version, revision) | 244 | bsrecipe = BSRecipe(name, epoch, version, revision) |