diff options
author | Tom Rini <trini@konsulko.com> | 2025-02-12 16:24:00 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-02-21 08:24:02 -0600 |
commit | 203d3a9fc709571cfeacb93f1b027f6ecfcce173 (patch) | |
tree | ed405cbdbc0894d2abcbb2c15650b5fc44cd3fe6 /tools/microcode-tool.py | |
parent | 3e335ddca6fa7a3d613c082cf83ff7b5bd9ddc29 (diff) |
test/py: Rework how test_ums.py handles (not) having write enabled
With a newer pylint version we get a warning about how mounted_test_fn
could be used before assignment. Evaluating the code, this can't happen
because we check for "not have_writable_fs_partition" and return before
moving to the part of the tests which use mounted_test_fn. However, we
should instead have this written so that we only try this part of the
test if have_writable_fs_partition is set, and this also fixes the
warning. As part of this we also move test_f and mounted_test_fn to the
section of code that already only does this if
have_writable_fs_partition is set.
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'tools/microcode-tool.py')
0 files changed, 0 insertions, 0 deletions