bitbake: prserv: Add connect function

This function abstracts the setup of a PR service client connection so
that openembedded-core doesn't need to be updated any time the details
are changed.

(Bitbake rev: d892287b31f81b075983ba500be265f75b53df64)

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Paul Barker
2021-04-26 09:16:33 +01:00
committed by Richard Purdie
parent ad5c898808
commit ebb7adac03

View File

@@ -482,3 +482,6 @@ def auto_shutdown():
def ping(host, port):
conn=PRServerConnection(host, port)
return conn.ping()
def connect(host, port):
return PRServerConnection(host, port)