cloud-hypervisor/net_util
Rob Bradford 0c60fa8268 net_util: tests: Avoid trying to create TAP devices simultaneously
The unit tests ask the Linux kernel to generate a TAP device name on
demand by passing in a format string. I suspect, but haven't been able
to confirm that there might be a rare race that triggers when creating
lots of devices in a short period of time. This is appearing in our unit
test as the occassional flake of the test_tap_read() which although it
has successfully created the device it fails to set the IP address on it
when looking it back up by it's name.

Since this is the most frequent cause of failures on our CI use a lock
to ensure that multiple TAP devices are not created simultaneously.

Fixes: #2135

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2021-01-26 10:42:02 +01:00
..
src net_util: tests: Avoid trying to create TAP devices simultaneously 2021-01-26 10:42:02 +01:00
Cargo.toml build(deps): bump serde from 1.0.120 to 1.0.121 2021-01-24 16:21:11 +00:00