]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
selftests: lib.mk: add SKIP handling to RUN_TESTS define
authorShuah Khan (Samsung OSG) <shuah@kernel.org>
Wed, 6 Nov 2019 10:29:06 +0000 (18:29 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 13 Nov 2019 05:30:06 +0000 (00:30 -0500)
commit3bec266cf247a583d37513783bf161bbd66696b6
treeb6cb0934bf04d8bab8117f049c270a759d3320f0
parentce6f05782f3c4f96d8e3310697a244bfe5793bb9
selftests: lib.mk: add SKIP handling to RUN_TESTS define

BugLink: https://bugs.launchpad.net/bugs/1812352
RUN_TESTS which is the common function that implements run_tests target,
treats all non-zero return codes from tests as failures. When tests are
skipped with non-zero return code, because of unmet dependencies and/or
unsupported configuration, it reports them as failed. This will lead to
too many false negatives even on the tests that couldn't be run.

RUN_TESTS is changed to test for SKIP=4 return from tests to enable the
framework for individual tests to return special SKIP code.

Tests will be changed as needed to report SKIP instead FAIL/PASS when
they get skipped.

Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
(cherry picked from commit 3f4435b5149372b3bbc5acab5c835d490490d6bc)
Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
Acked-by: Andrea Righi <andrea.righi@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
tools/testing/selftests/lib.mk