aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorFrancisco Pedraza <francisco.j.pedraza.gonzalez@intel.com>2016-02-19 16:05:41 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-28 11:32:33 +0000
commit72b336ad0d0a2994f00c57747686111a59fa8b29 (patch)
tree3e01150c2a56df2ccf5852660c0d8b4fea39f6dd /meta/lib/oeqa
parent3f9b1658d745b536eff1017b2c74a9dff46b6f4a (diff)
downloadopenembedded-core-contrib-72b336ad0d0a2994f00c57747686111a59fa8b29.tar.gz
oeqa/utils: added new network module
A network module was added, and will contain network utility funcions for now. with get_free_port that returns available network port in the system. Signed-off-by: Francisco Pedraza <francisco.j.pedraza.gonzalez@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/utils/network.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/lib/oeqa/utils/network.py b/meta/lib/oeqa/utils/network.py
new file mode 100644
index 0000000000..2768f6c5db
--- /dev/null
+++ b/meta/lib/oeqa/utils/network.py
@@ -0,0 +1,8 @@
+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]
2014-01-03bitbake: bitbake/lib/bb/cooker.py: remove a duplicated self.dataRobert Yang 2014-01-02bitbake: bitbake: fetcher2: clean(): remove the .patch.doneRobert Yang 2014-01-02bitbake: bitbake: fetcher2: git.py: clean(): remove the .tar.gz.doneRobert Yang 2014-01-02bitbake: bitbake: replace 3 spaces with 4Robert Yang 2013-12-22bitbake: fetch2: avoid printing "no checksum" error message twicePaul Eggleton 2013-12-22bitbake: fetch2: fail checksum validation if SRC_URI checksums set to ""Paul Eggleton 2013-12-20bitbake: Update to version 1.21.1 for masterRichard Purdie 2013-12-20bitbake: siggen: Fix reversed difference outputRichard Purdie 2013-12-20bitbake: runqueue: Further extend bitbake -S output to view signature differe...Richard Purdie 2013-12-20bitbake: siggen: When printing signatures recursively, limit the outputRichard Purdie 2013-12-20bitbake: runqueue: Fix data being written into siginfo/sigdata filesRichard Purdie 2013-12-18bitbake: runqueue: Add output for -S option for listing the changepoints comp...Richard Purdie 2013-12-18bitbake: bb.fetch2.git: reuse basecmd attributeOlof Johansson 2013-12-18bitbake: fetch2/git: Improve handling of unresolved names verses branchesRichard Purdie 2013-12-18bitbake: build/ast: Create strong task add/del API in bb.buildRichard Purdie 2013-12-18bitbake: ast/BBHandler/build: Add support for removing tasks (deltask)Richard Purdie 2013-12-13bitbake: data_smart: Fix hash corruption issueRichard Purdie 2013-12-10bitbake: process: Add timeout to select callRichard Purdie 2013-12-10bitbake: hob: after adding a layer, hob do not parse the configurationCristiana Voicu 2013-12-10bitbake: toasterui: fix version numbers for no PE specifiedAlexandru DAMIAN 2013-12-10bitbake: toaster: change package storage modelAlexandru DAMIAN 2013-12-10bitbake: toaster: update build stats readingAlexandru DAMIAN 2013-12-10bitbake: toaster: move layer information reading codeAlexandru DAMIAN 2013-12-09bitbake: data: Ensure we add the contains keys in a particular orderRichard Purdie 2013-12-06bitbake: fetch2/git: Ensure check is made in the correct directoryRichard Purdie 2013-12-05bitbake: toaster: exclude "set in documentation.conf" from variable historyCristiana Voicu 2013-12-05bitbake: hob: changes to INHERIT var should use "append" operationCristiana Voicu 2013-12-05bitbake: fetch2/git: Add sanity check to ensure we really did fetch the corre...Richard Purdie 2013-12-03bitbake: Hob: check if warnings are related to package buildValentin Popa 2013-12-03bitbake: hob: fix package property dialog for changes to FILES_INFOPaul Eggleton 2013-12-03bitbake: hob: name package files list variables appropriatelyPaul Eggleton 2013-12-03bitbake: lib/bb/ui: handle PKGSIZE change to bytesPaul Eggleton 2013-12-03bitbake: cooker/command/hob: Cleanup configuration init/reset functions and c...Richard Purdie 2013-12-03bitbake: hob: Use BASEDATASTORE_TRACKING featureRichard Purdie 2013-12-03bitbake: codeparser/data_smart: Optimise parsing speedRichard Purdie 2013-12-02bitbake: hob: fix rotating progress icon animationPaul Eggleton 2013-12-02bitbake: imagedetailspage: Fix crash with more than 15 layersRichard Purdie 2013-12-02bitbake: bitbake.lock: Add host:port to bitbake.lock for memres serverJason Wessel 2013-12-02bitbake: bitbake, xmlrpc.py: Implement memory resident auto port configuratio...Jason Wessel