summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2024-08-05 14:31:12 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2024-08-05 14:31:12 -0700
commitb446a2dae984fa5bd56dd7c3a02a426f87e05813 (patch)
treee4e8b93aaa3f8a3bcd148a1578849c141dcb4f78 /tools
parentc813111d19e65b6336a6352eae9c1ff5c40f722f (diff)
parent170c966cbe274e664288cfc12ee919d5e706dc50 (diff)
Merge tag 'linux_kselftest-fixes-6.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kselftest fix from Shuah Khan: "A single fix to the conditional in ksft.py script which incorrectly flags a test suite failed when there are skipped tests in the mix. The logic is fixed to take skipped tests into account and report the test as passed" * tag 'linux_kselftest-fixes-6.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: selftests: ksft: Fix finished() helper exit code on skipped tests
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/kselftest/ksft.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/kselftest/ksft.py b/tools/testing/selftests/kselftest/ksft.py
index cd89fb2bc10e..bf215790a89d 100644
--- a/tools/testing/selftests/kselftest/ksft.py
+++ b/tools/testing/selftests/kselftest/ksft.py
@@ -70,7 +70,7 @@ def test_result(condition, description=""):
def finished():
- if ksft_cnt["pass"] == ksft_num_tests:
+ if ksft_cnt["pass"] + ksft_cnt["skip"] == ksft_num_tests:
exit_code = KSFT_PASS
else:
exit_code = KSFT_FAIL