All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Esquivel <benjamin.esquivel@linux.intel.com>
To: Francisco Pedraza <francisco.j.pedraza.gonzalez@intel.com>,
	 openembedded-core@lists.openembedded.org
Subject: Re: [PATCHv2 1/2] oeqa/utils: added new networke module
Date: Mon, 15 Feb 2016 13:48:15 -0600	[thread overview]
Message-ID: <1455565695.19294.14.camel@linux.intel.com> (raw)
In-Reply-To: <1455563442-11586-1-git-send-email-francisco.j.pedraza.gonzalez@intel.com>

Hi Paco, please fix the typo in the subject as it is the typo of the
commit title as well.

Check my other comments below and re-send.

On Mon, 2016-02-15 at 13:10 -0600, Francisco Pedraza wrote:
> A network module was added, and will contain network utility funcions
> for now.
fix typo in 'functions'
> with get_free_port that returns availabe network port in the system.
fix typo in 'available'
> 
> Signed-off-by: Francisco Pedraza <
> francisco.j.pedraza.gonzalez@intel.com>
> ---
>  meta/lib/oeqa/utils/network.py | 8 ++++++++
>  1 file changed, 8 insertions(+)
>  create mode 100644 meta/lib/oeqa/utils/network.py
> 
> diff --git a/meta/lib/oeqa/utils/network.py
> b/meta/lib/oeqa/utils/network.py
> new file mode 100644
> index 0000000..2768f6c
> --- /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]
> -- 
> 2.5.0
> 


  parent reply	other threads:[~2016-02-15 19:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-15 19:10 [PATCHv2 1/2] oeqa/utils: added new networke module Francisco Pedraza
2016-02-15 19:10 ` [PATCHv2 2/2] oeqa/selftest/prservice: Added new tc: check pr-server stop msg Francisco Pedraza
2016-02-15 19:48   ` Benjamin Esquivel
2016-02-15 19:48 ` Benjamin Esquivel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-02-19 22:05 [PATCHv2 1/2] oeqa/utils: added new networke module Francisco Pedraza

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1455565695.19294.14.camel@linux.intel.com \
    --to=benjamin.esquivel@linux.intel.com \
    --cc=francisco.j.pedraza.gonzalez@intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.