mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
7c86d2d996
commit
d9b5b8cb21
@@ -8,7 +8,7 @@ import json
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
from collections import namedtuple,OrderedDict
|
from collections import namedtuple
|
||||||
from statistics import mean
|
from statistics import mean
|
||||||
|
|
||||||
|
|
||||||
@@ -238,7 +238,7 @@ class BuildStats(dict):
|
|||||||
subdirs = os.listdir(path)
|
subdirs = os.listdir(path)
|
||||||
for dirname in subdirs:
|
for dirname in subdirs:
|
||||||
recipe_dir = os.path.join(path, dirname)
|
recipe_dir = os.path.join(path, dirname)
|
||||||
if not os.path.isdir(recipe_dir):
|
if dirname == "reduced_proc_pressure" or not os.path.isdir(recipe_dir):
|
||||||
continue
|
continue
|
||||||
name, epoch, version, revision = cls.split_nevr(dirname)
|
name, epoch, version, revision = cls.split_nevr(dirname)
|
||||||
bsrecipe = BSRecipe(name, epoch, version, revision)
|
bsrecipe = BSRecipe(name, epoch, version, revision)
|
||||||
|
|||||||
Reference in New Issue
Block a user