]> git.baikalelectronics.ru Git - kernel.git/commit
kunit: fix debugfs code to use enum kunit_status, not bool
authorDaniel Latypov <dlatypov@google.com>
Fri, 29 Apr 2022 18:12:59 +0000 (11:12 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 2 May 2022 18:36:03 +0000 (12:36 -0600)
commitdef61b09a862fccc62f5ecd62a5a1b37b581debf
tree1e578b16093784c0a5013f2a6b23424386e48ba3
parent90109fed8965ee7ceb067828511e3a296f769c73
kunit: fix debugfs code to use enum kunit_status, not bool

Commit 6e8443edae3f ("kunit: Support skipped tests") switched to using
`enum kunit_status` to track the result of running a test/suite since we
now have more than just pass/fail.

This callsite wasn't updated, silently converting to enum to a bool and
then back.

Fixes: 6e8443edae3f ("kunit: Support skipped tests")
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/kunit/debugfs.c