diff options
author | Aryaman Gupta <aryaman.gupta@windriver.com> | 2022-06-30 14:35:17 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-30 23:38:01 +0100 |
commit | 6958024ed2aa199e56851bf960c06dec1a3d81a1 (patch) | |
tree | 44d24e549a68b7245cb0ca7d69f5628342a7b6aa | |
parent | 012c046628990ccb230dd92c32f470a087ff332e (diff) | |
download | poky-6958024ed2aa199e56851bf960c06dec1a3d81a1.tar.gz |
buildperf/base.py: skip reduced_proc_pressure directory
Buildperf was designed to skip all non-directories under buildstats, i.e. proc
log files. With the /proc/pressure stats being collected in a new directory,
the following error was seen:
meta/lib/oeqa/buildperf/base.py", line 392, in split_nevr
n_e_v, revision = nevr.rsplit('-', 1)
ValueError: not enough values to unpack (expected 2, got 1)
Add an additional check to skip the reduced_proc_pressure directory.
(From OE-Core rev: d3a25dd7aa63ab98c8bb931b4b3bc61807806ed3)
Signed-off-by: Aryaman Gupta <aryaman.gupta@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oeqa/buildperf/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py index 5f1805d86c..5d656c781a 100644 --- a/meta/lib/oeqa/buildperf/base.py +++ b/meta/lib/oeqa/buildperf/base.py | |||
@@ -444,7 +444,7 @@ class BuildPerfTestCase(unittest.TestCase): | |||
444 | buildstats = [] | 444 | buildstats = [] |
445 | for fname in os.listdir(bs_dir): | 445 | for fname in os.listdir(bs_dir): |
446 | recipe_dir = os.path.join(bs_dir, fname) | 446 | recipe_dir = os.path.join(bs_dir, fname) |
447 | if not os.path.isdir(recipe_dir): | 447 | if not os.path.isdir(recipe_dir) or fname == "reduced_proc_pressure": |
448 | continue | 448 | continue |
449 | name, epoch, version, revision = split_nevr(fname) | 449 | name, epoch, version, revision = split_nevr(fname) |
450 | recipe_bs = OrderedDict((('name', name), | 450 | recipe_bs = OrderedDict((('name', name), |