aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/lib.mk
diff options
context:
space:
mode:
authorJiri Benc <jbenc@redhat.com>2020-02-06 09:40:00 +0100
committerShuah Khan <skhan@linuxfoundation.org>2020-02-10 18:01:25 -0700
commit9d235a558c689b0ecdd23bbd8beb2e0584f619ed (patch)
tree3d3b544aef67a07e0e075c86b66b83f69f25d704 /tools/testing/selftests/lib.mk
parentKernel selftests: tpm2: check for tpm support (diff)
downloadlinux-dev-9d235a558c689b0ecdd23bbd8beb2e0584f619ed.tar.xz
linux-dev-9d235a558c689b0ecdd23bbd8beb2e0584f619ed.zip
selftests: allow detection of build failures
Commit 5f70bde26a48 ("selftests: fix build behaviour on targets' failures") added a logic to track failure of builds of individual targets. However, it does exactly the opposite of what a distro kernel needs: we create a RPM package with a selected set of selftests and we need the build to fail if build of any of the targets fail. Both use cases are valid. A distribution kernel is in control of what is included in the kernel and what is being built; any error needs to be flagged and acted upon. A CI system that tries to build as many tests as possible on the best effort basis is not really interested in a failure here and there. Support both use cases by introducing a FORCE_TARGETS variable. It is switched off by default to make life for CI systems easier, distributions can easily switch it on while building their packages. Reported-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com> Signed-off-by: Jiri Benc <jbenc@redhat.com> Reviewed-by: Cristian Marussi <cristian.marussi@arm.com> Tested-by: Cristian Marussi <cristian.marussi@arm.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions