]> code.ossystems Code Review - openembedded-core.git/commit
qemurunner: Make create_socket() return data and use exceptions
authorRandy Witt <randy.e.witt@linux.intel.com>
Thu, 20 Aug 2015 17:55:17 +0000 (10:55 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 24 Aug 2015 22:45:24 +0000 (23:45 +0100)
commitb46d83a848cf23c7f639a6ebafbd0f2c1413584a
treeed9ae9818c9c0aaa3db5091d3bf561ed2155dc78
parent829a6e521f15bae93d5f1a02dc67bc56a8c606c8
qemurunner: Make create_socket() return data and use exceptions

So that create_socket() can be called more than once to create sockets,
it now returns the socket and port rather than setting class variables
directly.

create_socket() now only uses exceptions for errors, not the return
value from the function.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/utils/qemurunner.py