]> www.infradead.org Git - users/hch/configfs.git/commit
selftests: ksft: Fix finished() helper exit code on skipped tests
authorLaura Nao <laura.nao@collabora.com>
Tue, 30 Jul 2024 10:29:28 +0000 (12:29 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 31 Jul 2024 17:38:56 +0000 (11:38 -0600)
commit170c966cbe274e664288cfc12ee919d5e706dc50
tree92bd1af0759eb33dad98353301827aa635bc6941
parent8400291e289ee6b2bf9779ff1c83a291501f017b
selftests: ksft: Fix finished() helper exit code on skipped tests

The Python finished() helper currently exits with KSFT_FAIL when there
are only passed and skipped tests. Fix the logic to exit with KSFT_PASS
instead, making it consistent with its C and bash counterparts
(ksft_finished() and ktap_finished() respectively).

Reviewed-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Fixes: dacf1d7a78bf ("kselftest: Add test to verify probe of devices from discoverable buses")
Signed-off-by: Laura Nao <laura.nao@collabora.com>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/kselftest/ksft.py