Skip to content

Commit 3282dde

Browse files
committed
lava: Always collect device error logs when we built kselftests
The devices/error_logs kselftest isn't really a test per se, more it's something that exists to report errors generated by other tests. Let's take advantage of that (and the fact that we are overlaying the kselftest tarball unconditionally at the minute) by running it at the end of each test job. Signed-off-by: Mark Brown <[email protected]>
1 parent 8eb3d5c commit 3282dde

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

config/runtime/base/lava.jinja2

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,22 @@ actions:
8585

8686
{% set test_template = 'tests/' + test_method + '.jinja2' %}
8787
{% extends test_template %}
88+
89+
# If we built the kselftests always run the devices/error_logs test to
90+
# flag up any errors that were triggered while running the main tests.
91+
{%- if node.artifacts.kselftest_tar_gz %}
92+
- test:
93+
timeout:
94+
minutes: 1
95+
definitions:
96+
- repository: https://github.com/kernelci/test-definitions.git
97+
from: git
98+
revision: kernelci.org
99+
path: automated/linux/kselftest/kselftest.yaml
100+
name: '{{ node.name }}'
101+
parameters:
102+
KSELFTEST_PATH: /opt/kselftest
103+
SKIPFILE: /dev/null
104+
TST_CMDFILES: devices/error_logs
105+
SKIP_INSTALL: True
106+
{%- endif %}

0 commit comments

Comments
 (0)