summaryrefslogtreecommitdiff
path: root/yocto-poky/meta/lib/oeqa/utils/network.py
diff options
context:
space:
mode:
Diffstat (limited to 'yocto-poky/meta/lib/oeqa/utils/network.py')
-rw-r--r--yocto-poky/meta/lib/oeqa/utils/network.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/yocto-poky/meta/lib/oeqa/utils/network.py b/yocto-poky/meta/lib/oeqa/utils/network.py
deleted file mode 100644
index 2768f6c5d..000000000
--- a/yocto-poky/meta/lib/oeqa/utils/network.py
+++ /dev/null
@@ -1,8 +0,0 @@
-import socket
-
-def get_free_port():
- s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- s.bind(('', 0))
- addr = s.getsockname()
- s.close()
- return addr[1]