Skip to content

Commit 174714f

Browse files
Alez87kuba-moo
authored andcommitted
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 <[email protected]> Signed-off-by: Alessandro Zanni <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 6ea8a1c commit 174714f

File tree

1 file changed

+1
-0
lines changed
  • tools/testing/selftests/net/lib/py

1 file changed

+1
-0
lines changed

tools/testing/selftests/net/lib/py/nsim.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0
22

3+
import errno
34
import json
45
import os
56
import random

0 commit comments

Comments
 (0)