netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] selftests: drivers: net: fix name not defined
@ 2024-10-08 22:01 Alessandro Zanni
  2024-10-10  2:32 ` Jakub Kicinski
  2024-10-10  7:40 ` Petr Machata
  0 siblings, 2 replies; 4+ messages in thread
From: Alessandro Zanni @ 2024-10-08 22:01 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, shuah, petrm, dw, martin.lau
  Cc: Alessandro Zanni, netdev, linux-kselftest, linux-kernel, skhan,
	anupnewsmail

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 module errno makes available standard error system symbols.

Signed-off-by: Alessandro Zanni <alessandro.zanni87@gmail.com>
---
 tools/testing/selftests/net/lib/py/nsim.py | 1 +
 1 file changed, 1 insertion(+)

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
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-10-10 17:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-08 22:01 [PATCH] selftests: drivers: net: fix name not defined Alessandro Zanni
2024-10-10  2:32 ` Jakub Kicinski
2024-10-10 17:11   ` Alessandro Zanni
2024-10-10  7:40 ` Petr Machata

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).