Beraldo Leal <bl...@redhat.com> writes:
> Race conditions can happen with the current code, because the port that > was available might not be anymore by the time the server is started. > > By setting the port to 0, PhoneServer it will use the OS default > behavior to get a free port, then we save this information so we can > later configure the guest. > > Suggested-by: Daniel P. Berrangé <berra...@redhat.com> > Signed-off-by: Beraldo Leal <bl...@redhat.com> > --- > tests/avocado/avocado_qemu/__init__.py | 13 +++++++------ > 1 file changed, 7 insertions(+), 6 deletions(-) Reviewed-by: Cleber Rosa <cr...@redhat.com> Tested-by: Cleber Rosa <cr...@redhat.com>