]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
kunit: tool: Fix a python tuple typing error
authorDavid Gow <davidgow@google.com>
Tue, 23 Feb 2021 05:49:30 +0000 (21:49 -0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 7 May 2021 07:53:11 +0000 (09:53 +0200)
commit5778ba70e020b452ee8ee4b41c667f2f2647b52a
tree28308a97e0f95889624373bf3d57869a59b4309b
parent5e4ce3ec249655d722d555425f58e18ea4288305
kunit: tool: Fix a python tuple typing error

BugLink: https://bugs.launchpad.net/bugs/1923415
[ Upstream commit 7421b1a4d10c633ca5f14c8236d3e2c1de07e52b ]

The first argument to namedtuple() should match the name of the type,
which wasn't the case for KconfigEntryBase.

Fixing this is enough to make mypy show no python typing errors again.

Fixes 97752c39bd ("kunit: kunit_tool: Allow .kunitconfig to disable config items")
Signed-off-by: David Gow <davidgow@google.com>
Reviewed-by: Daniel Latypov <dlatypov@google.com>
Acked-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: Andrea Righi <andrea.righi@canonical.com>
tools/testing/kunit/kunit_config.py