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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:22:53 +0000 (10:22 +0200)
commitbd14de73644e95ce7279f172f3a42bb121559522
tree7eb9ed0fe9f681aff1efee13f49fd8479f3f4d75
parentee21431e3022320b2abc9f5db3b06ae3f8021ab6
kunit: fix debugfs code to use enum kunit_status, not bool

[ Upstream commit 38289a26e1b8a37755f3e07056ca416c1ee2a2e8 ]

Commit 6d2426b2f258 ("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: 6d2426b2f258 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
lib/kunit/debugfs.c