summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>2021-06-22 12:05:00 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-07-14 16:56:26 +0200
commit4b44486b8bfd131e935d706a490ca40cf713f4e7 (patch)
tree296ac1b73744b0f0fce42de1298d02646f116943 /tools
parent997285646a9c8455fe09128717ccd18275dd7118 (diff)
downloadlinux-stable-4b44486b8bfd131e935d706a490ca40cf713f4e7.tar.gz
linux-stable-4b44486b8bfd131e935d706a490ca40cf713f4e7.tar.bz2
linux-stable-4b44486b8bfd131e935d706a490ca40cf713f4e7.zip
tc-testing: fix list handling
[ Upstream commit b4fd096cbb871340be837491fa1795864a48b2d9 ] python lists don't have an 'add' method, but 'append'. Fixes: 14e5175e9e04 ("tc-testing: introduce scapyPlugin for basic traffic") Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/tc-testing/plugin-lib/scapyPlugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/tc-testing/plugin-lib/scapyPlugin.py b/tools/testing/selftests/tc-testing/plugin-lib/scapyPlugin.py
index 229ee185b27e..a7b21658af9b 100644
--- a/tools/testing/selftests/tc-testing/plugin-lib/scapyPlugin.py
+++ b/tools/testing/selftests/tc-testing/plugin-lib/scapyPlugin.py
@@ -36,7 +36,7 @@ class SubPlugin(TdcPlugin):
for k in scapy_keys:
if k not in scapyinfo:
keyfail = True
- missing_keys.add(k)
+ missing_keys.append(k)
if keyfail:
print('{}: Scapy block present in the test, but is missing info:'
.format(self.sub_class))