OSDN Git Service

tests/avocado/migration: Get find_free_port() from the ports
authorThomas Huth <thuth@redhat.com>
Mon, 29 Aug 2022 12:19:39 +0000 (14:19 +0200)
committerThomas Huth <thuth@redhat.com>
Tue, 30 Aug 2022 05:55:43 +0000 (07:55 +0200)
commitda55be562ea2b082da5d55cc12730fe8fe118852
tree297814672e8d052917c8b3a35df5d78e1ea72c06
parent146f39d7f3b08caa3a2a0645474465437cf085b8
tests/avocado/migration: Get find_free_port() from the ports

In upstream Avocado, the find_free_port() function is not available
from "network" anymore, but must be used via "ports", see:

 https://github.com/avocado-framework/avocado/commit/22fc98c6ff76cc55c48

To be able to update to a newer Avocado version later, let's use
the new way for accessing the find_free_port() function here.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220829121939.209329-1-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/avocado/migration.py