[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Qemu-devel] [PATCH for-2.8] iotests: Do not rely on un
From: |
Sascha Silbe |
Subject: |
Re: [Qemu-block] [Qemu-devel] [PATCH for-2.8] iotests: Do not rely on unavailable domains in 162 |
Date: |
Tue, 23 Aug 2016 21:20:12 +0200 |
User-agent: |
Notmuch/0.22.1~rc0 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu) |
Dear Max,
Max Reitz <address@hidden> writes:
> On 2016-08-23 at 10:17, Sascha Silbe wrote:
>> Max Reitz <address@hidden> writes:
[tests/qemu-iotests/162]
>>> Good idea. We can just let the script generate a random port;
>>> $(($RANDOM+32768)) should do the trick.
>>
>> Which will fail just the same as the original version if anything (not
>> just qemu-nbd) is already occupying the port you happened to
>> choose.
>
> But I think figuring that out from the error log will be rather trivial:
>
> > +Failed to bind socket: Address already in use
Once a human starts digging into the logs, yes.
[...]
> If you think this test failing is really an issue that we should fix,
> then I'd rather put the qemu-nbd launch inside of a loop, retrying until
> it succeeds with some random port.
Seems to be the least ugly approach for now. And yeah, fixing it would
be important IMO. Having automated tests and CI systems fail randomly is
really annoying. People stop running the tests resp. ignore the CI mails
pretty quickly if there are false positives.
Sascha
--
Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg
https://se-silbe.de/
USt-IdNr. DE281696641