Python: add utility function for retrieving port redirection
commit976218cbe792c37c1af7840ca5113e37b5a51d95
authorCleber Rosa <crosa@redhat.com>
Mon, 12 Apr 2021 04:46:36 +0000 (12 00:46 -0400)
committerJohn Snow <jsnow@redhat.com>
Tue, 1 Jun 2021 20:21:20 +0000 (1 16:21 -0400)
tree082b120c16002d36f92f3bd402af0e734dc81fd6
parentc028691e65b9f45e7a8ff8ffbfb9a3818478b572
Python: add utility function for retrieving port redirection

Slightly different versions for the same utility code are currently
present on different locations.  This unifies them all, giving
preference to the version from virtiofs_submounts.py, because of the
last tweaks added to it.

While at it, this adds a "qemu.utils" module to host the utility
function and a test.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Willian Rampazzo <willianr@redhat.com>
Message-Id: <20210412044644.55083-4-crosa@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
[Squashed in below fix. --js]
Signed-off-by: John Snow <jsnow@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20210601154546.130870-2-crosa@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/utils.py [new file with mode: 0644]
tests/acceptance/info_usernet.py [new file with mode: 0644]
tests/acceptance/linux_ssh_mips_malta.py
tests/acceptance/virtiofs_submounts.py
tests/vm/basevm.py