Skip to content

Commit b446a2d

Browse files
committed
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
2 parents c813111 + 170c966 commit b446a2d

File tree

1 file changed

+1
-1
lines changed
  • tools/testing/selftests/kselftest

1 file changed

+1
-1
lines changed

tools/testing/selftests/kselftest/ksft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_result(condition, description=""):
7070

7171

7272
def finished():
73-
if ksft_cnt["pass"] == ksft_num_tests:
73+
if ksft_cnt["pass"] + ksft_cnt["skip"] == ksft_num_tests:
7474
exit_code = KSFT_PASS
7575
else:
7676
exit_code = KSFT_FAIL

0 commit comments

Comments
 (0)