summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/lib/kvm_util.c
diff options
context:
space:
mode:
authorDaniel Latypov <dlatypov@google.com>2021-01-14 16:39:12 -0800
committerShuah Khan <skhan@linuxfoundation.org>2021-01-15 17:51:47 -0700
commit81c60306dc588e2e6b21391c1f6dd509403e6eec (patch)
treec81080c2f5cc1fae02314b92b5d667122616f4dd /tools/testing/selftests/kvm/lib/kvm_util.c
parent09641f7c7d8f1309fe9ad9ce4e6a1697016d73ba (diff)
kunit: tool: fix minor typing issue with None status
The code to handle aggregating statuses didn't check that the status actually got set to some non-None value. Default the value to SUCCESS instead of adding a bunch of `is None` checks. This sorta follows the precedent in commit 3fc48259d525 ("kunit: Don't fail test suites if one of them is empty"). Also slightly simplify the code and add type annotations. Signed-off-by: Daniel Latypov <dlatypov@google.com> Reviewed-by: David Gow <davidgow@google.com> Reviewed-by: Brendan Higgins <brendanhiggins@google.com> Tested-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/kvm_util.c')
0 files changed, 0 insertions, 0 deletions