]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 10 Aug 2022 07:24:19 +0000 (09:24 +0200)
commitf4ff65cbf61a977bbfc8bd0b338822f087332b75
tree879c6f9c2ee643ea7487f0d108e6c7aa2470f902
parent91de7ae540b4b7024f6430392fa720bc4a6a31ca
kunit: fix debugfs code to use enum kunit_status, not bool

BugLink: https://bugs.launchpad.net/bugs/1981864
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
lib/kunit/debugfs.c