diff options
author | 2021-01-14 16:39:12 -0800 | |
---|---|---|
committer | 2021-01-15 17:51:47 -0700 | |
commit | 81c60306dc588e2e6b21391c1f6dd509403e6eec (patch) | |
tree | c81080c2f5cc1fae02314b92b5d667122616f4dd /tools/perf/scripts/python/export-to-postgresql.py | |
parent | kunit: tool: surface and address more typing issues (diff) | |
download | linux-dev-81c60306dc588e2e6b21391c1f6dd509403e6eec.tar.xz linux-dev-81c60306dc588e2e6b21391c1f6dd509403e6eec.zip |
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/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions