Re: [PATCH] tests/functional/test_vnc: Reduce raciness in find_free_ports()

2024-09-04 Thread Daniel P . Berrangé
On Wed, Sep 04, 2024 at 08:20:12AM +0200, Thomas Huth wrote: > On 03/09/2024 16.50, Daniel P. Berrangé wrote: > > On Tue, Sep 03, 2024 at 04:35:53PM +0200, Philippe Mathieu-Daudé wrote: > > > Pass the port range as argument. In order to reduce races > > > when looking for free ports, use a per-targ

Re: [PATCH] tests/functional/test_vnc: Reduce raciness in find_free_ports()

2024-09-03 Thread Thomas Huth
On 03/09/2024 16.50, Daniel P. Berrangé wrote: On Tue, Sep 03, 2024 at 04:35:53PM +0200, Philippe Mathieu-Daudé wrote: Pass the port range as argument. In order to reduce races when looking for free ports, use a per-target per-process base port (based on the target built-in hash). Signed-off-by

Re: [PATCH] tests/functional/test_vnc: Reduce raciness in find_free_ports()

2024-09-03 Thread Daniel P . Berrangé
On Tue, Sep 03, 2024 at 04:35:53PM +0200, Philippe Mathieu-Daudé wrote: > Pass the port range as argument. In order to reduce races > when looking for free ports, use a per-target per-process > base port (based on the target built-in hash). > > Signed-off-by: Philippe Mathieu-Daudé > --- > Based-

[PATCH] tests/functional/test_vnc: Reduce raciness in find_free_ports()

2024-09-03 Thread Philippe Mathieu-Daudé
Pass the port range as argument. In order to reduce races when looking for free ports, use a per-target per-process base port (based on the target built-in hash). Signed-off-by: Philippe Mathieu-Daudé --- Based-on: <20240830133841.142644-33-th...@redhat.com> --- tests/functional/test_vnc.py | 12