Skip to content

kselftest warning#278

Merged
bhcopeland merged 2 commits into
kernelci:masterfrom
roxell:kselftest-warning
Apr 23, 2026
Merged

kselftest warning#278
bhcopeland merged 2 commits into
kernelci:masterfrom
roxell:kselftest-warning

Conversation

@roxell
Copy link
Copy Markdown
Collaborator

@roxell roxell commented Apr 21, 2026

Summary of this PR

  • Report WARNING status when kselftest has partial build failures.
  • Use make -i for the install step so tests that compiled get installed

Comment thread tuxmake/build.py
"""
`True` if this target passed with warnings.
"""
return self.status == "WARNING"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should also return PASS, otherwise dependent targets get skipped

return self.status in ("PASS", "WARNING").

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @bhcopeland should be fixed now.

@roxell roxell force-pushed the kselftest-warning branch from b8da6d2 to 20d9c3a Compare April 22, 2026 19:33
roxell added 2 commits April 23, 2026 11:02
When a nonfatal target has command failures, report WARNING
instead of PASS. This makes partial build failures visible
to CI without failing the build.

Suggested-by: Ben Copeland <ben.copeland@linaro.org>
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
The install target depends on all. Sub-makes rebuild and
fail again even with -o all. Use make -i to ignore errors
so tests that compiled get installed.

Run make all first without -i so the nonfatal path can
detect the failure and report WARNING.

Suggested-by: Ben Copeland <ben.copeland@linaro.org>
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
@roxell roxell force-pushed the kselftest-warning branch from 20d9c3a to 9b49236 Compare April 23, 2026 09:03
@bhcopeland bhcopeland merged commit 3975415 into kernelci:master Apr 23, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants