aboutsummaryrefslogtreecommitdiff
path: root/rust/qemu-api/src
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2024-12-18 14:14:38 +0100
committerThomas Huth <thuth@redhat.com>2025-01-02 08:58:08 +0100
commitb7edbbf4321fea9efefda2a5d6bcea4f7140f866 (patch)
tree4e27b3769943d8218ea25cad201837d6533f292b /rust/qemu-api/src
parent93a9fdc5504f15d319927c1497522cb72929d78e (diff)
downloadqemu-b7edbbf4321fea9efefda2a5d6bcea4f7140f866.zip
qemu-b7edbbf4321fea9efefda2a5d6bcea4f7140f866.tar.gz
qemu-b7edbbf4321fea9efefda2a5d6bcea4f7140f866.tar.bz2
tests/functional: Extract the find_free_ports() function into a helper file
We'll need this functionality in other functional tests, too, so let's extract it into the qemu_test module. Also add an __enter__ and __exit__ function that can be used for using this functionality in a locked context, so that tests that are running in parallel don't try to compete for the same ports later. Also make sure to only use ports in the "Dynamic Ports" range (see https://www.rfc-editor.org/rfc/rfc6335) and "randomize" the start of the probed range with the PID of the test process to further avoid possible clashes with other competing processes. Message-ID: <20241218131439.255841-5-thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'rust/qemu-api/src')
0 files changed, 0 insertions, 0 deletions