From c1e953dec6a785c5fd6aee95d705a51e38bf20ca Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Mon, 4 Nov 2024 15:48:50 +0200 Subject: [PATCH] fix(kbuild): Do not build kselftest if not set in jobfilter To speed up bisection do not build kselftest if it is not set in jobfilter. Signed-off-by: Denys Fedoryshchenko --- kernelci/kbuild.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernelci/kbuild.py b/kernelci/kbuild.py index 233439b831..c0405a4938 100644 --- a/kernelci/kbuild.py +++ b/kernelci/kbuild.py @@ -156,6 +156,10 @@ def __init__(self, node=None, jobname=None, params=None, jsonobj=None, apiconfig self._kfselftest = False else: self._kfselftest = True + if node['jobfilter'] and self._kfselftest is True: + kselftest_name = node['name'] + "-kselftest" + if kselftest_name not in node['jobfilter']: + self._kfselftest = False self._apijobname = jobname self._steps = [] self._artifacts = []