Skip to content

Commit 10986a6

Browse files
committed
This commit has changes in bpf() and yaml file
1 parent eaa837a commit 10986a6

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

kernel/kselftest.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,13 @@ def ksmtest(self):
249249
.format(ksm_test_dir))
250250

251251
def bpf(self):
252-
bpf_test_dir = self.sourcedir + "/bpf/"
253-
os.chdir(bpf_test_dir)
254-
build.make(bpf_test_dir)
255-
build.make(bpf_test_dir, extra_args='run_tests')
252+
"""
253+
Execute the kernel bpf selftests
254+
"""
255+
self.sourcedir = os.path.join(self.buldir, self.testdir)
256+
os.chdir(self.sourcedir)
257+
build.make(self.sourcedir)
258+
build.make(self.sourcedir, extra_args='run_tests')
256259

257260
def cpufreq(self):
258261
"""

kernel/kselftest.py.data/bpf.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
component: !mux
2+
bpf:
3+
comp: 'bpf'
4+
run_type: !mux
5+
upstream:
6+
type: 'upstream'
7+
location: ''

0 commit comments

Comments
 (0)