tools/testing/kunit/kunit.py: remove redundant double check
authorAlexander Pantyukhin <apantykhin@gmail.com>
Wed, 18 Jan 2023 07:42:19 +0000 (12:42 +0500)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 8 Feb 2023 21:25:30 +0000 (14:25 -0700)
commit1fdc6f4f274748f43ebb93eeaaa23c3c69f9c3a5
treed4b1071ab29400cf021ef0b4e58551367fb1fab4
parent4ec5183ec48656cec489c49f989c508b68b518e3
tools/testing/kunit/kunit.py: remove redundant double check

The build_tests function contained double checking for not success
result. It is fixed in the current patch. Additional small
simplifications of code like using ternary if were applied (avoid using
the same operation by calculation times differ in two places).

Signed-off-by: Alexander Pantyukhin <apantykhin@gmail.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/kunit/kunit.py