diff options
author | Alessandro Zanni <alessandro.zanni87@gmail.com> | 2024-10-10 20:30:30 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-10-11 16:01:00 -0700 |
commit | 174714f0e505070a16be6fbede30d32b81df789f (patch) | |
tree | 3aaa078e695889e715c21137079f701616001a13 /tools | |
parent | 6ea8a1c28fd36179fc66e088060b11515c8508b7 (diff) |
selftests: drivers: net: fix name not defined
This fix solves this error, when calling kselftest with targets
"drivers/net":
File "tools/testing/selftests/net/lib/py/nsim.py", line 64, in __init__
if e.errno == errno.ENOSPC:
NameError: name 'errno' is not defined
The error was found by running tests manually with the command:
make kselftest TARGETS="drivers/net"
The module errno makes available standard error system symbols.
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Alessandro Zanni <alessandro.zanni87@gmail.com>
Link: https://patch.msgid.link/20241010183034.24739-1-alessandro.zanni87@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/net/lib/py/nsim.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/lib/py/nsim.py b/tools/testing/selftests/net/lib/py/nsim.py index f571a8b3139b..1a8cbe9acc48 100644 --- a/tools/testing/selftests/net/lib/py/nsim.py +++ b/tools/testing/selftests/net/lib/py/nsim.py @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 +import errno import json import os import random |