iproute2/testsuite
Christian Ehrhardt 4afbeaeeaf tests: read limited amount from /dev/urandom
In some test environments like e.g. Ubuntu & Debian autopkgtest it
can happen that while generating random device names the pipes
between tr and head are considered dead while processing.
That prints (non fatal) issues like:
  Running ip/link/new_link.t [iproute2-this/4.13.0-17-generic]: tr:
write error: Broken pipe
  tr: write error
  PASS

This only happens if reading an infinite amount of chars with the
read from urandom, so reading a defined amount fixes the issue.

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: read limited amount from /dev/urandom 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