iproute2/testsuite
Christian Ehrhardt 9bed02a5d5 tests: make sure rand_dev suffix has 6 chars
The change to limit the read size from /dev/urandom is a tradeoff.
Reading too much can trigger an issue, but so it could if the
suggested 250 random chars would not contain enough [:alpha:] chars.
If they contain:
 a) >=6 all is ok
 b) [1-5] the devname would be shorter than expected (non fatal).
 c) 0 things would break

In loops of hundreds of thousands it always was (a) for my, but since
if occuring in a test it might be hard to track what happened avoid
this issue by retrying on the length condition.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2018-01-10 08:29:51 -08:00
..
configs Import patch iproute2.112 2005-01-17 23:27:05 +00:00
iproute2 SPDX license identifiers 2017-11-24 12:21:35 -08:00
lib tests: make sure rand_dev suffix has 6 chars 2018-01-10 08:29:51 -08:00
tests tests: Revert back /bin/sh in shebang 2017-10-16 09:22:01 -07:00
tools SPDX license identifiers 2017-11-24 12:21:35 -08:00
Makefile SPDX license identifiers 2017-11-24 12:21:35 -08:00