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.7.2~9 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e6639e58cbdab634972eca066b766601145ff5a5;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 56fe622e9..3964e3b12 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} 2>/dev/null + cat /dev/urandom 2>/dev/null | tr -cd "$CHAR" 2>/dev/null | head -c ${1:-16} 2>/dev/null echo }