From: Jérémie Galarneau Date: Wed, 9 Mar 2016 20:49:24 +0000 (-0500) Subject: Test fix: ignore stderr at every step of randstring X-Git-Tag: v2.6.3~66 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3b4243960f413907544652b068c842bc98e2b9c1;p=lttng-tools.git Test fix: ignore stderr at every step of randstring Signed-off-by: Jérémie Galarneau --- diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index 1f116a6d6..793f0e938 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -88,7 +88,7 @@ function validate_kernel_version () function randstring() { [ "$2" == "0" ] && CHAR="[:alnum:]" || CHAR="[:graph:]" - cat /dev/urandom | tr -cd "$CHAR" | head -c ${1:-16} + cat /dev/urandom 2>/dev/null | tr -cd "$CHAR" 2>/dev/null | head -c ${1:-16} 2>/dev/null echo }