Skip to content

Commit 0bde61e

Browse files
broonienuclearcat
authored andcommitted
jobs: Run KUnit --alltests
KUnit has an option --alltests that enables greater coverage. For the purposes of KernelCI it really doesn't make that much sense to use the cut down default set of tests only, enable the full set as standard. Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 973cd60 commit 0bde61e

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

config/jobs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2173,6 +2173,7 @@ jobs:
21732173
<<: *kunit-job
21742174
params:
21752175
arch: x86_64
2176+
args: --alltests
21762177
rules:
21772178
tree:
21782179
- '!chromiumos'

config/runtime/kunit.jinja2

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ RESULT_MAP = {
2323
'SKIP': 'skip',
2424
}
2525
ARCH = '{{ arch }}'
26+
ARGS = '{{ args }}'
2627
{% endblock %}
2728

2829
{% block python_job -%}
@@ -104,11 +105,12 @@ cd {src_path}
104105
if os.path.exists(job_log_path):
105106
os.remove(job_log_path)
106107

108+
args = f'{ARGS}' if ARGS else ''
107109
arch_arg = f'--arch={ARCH}' if ARCH else ''
108110
steps = {
109-
'config': f'config {arch_arg}',
110-
'build': f'build --jobs=$(nproc) {arch_arg}',
111-
'exec': f'exec --json={kunit_json} {arch_arg}',
111+
'config': f'config {args} {arch_arg}',
112+
'build': f'build --jobs=$(nproc) {args} {arch_arg}',
113+
'exec': f'exec --json={kunit_json} {args} {arch_arg}',
112114
}
113115
step_results = {name: (None, []) for name in steps.keys()}
114116

0 commit comments

Comments
 (0)