Test fix: ignore stderr at every step of randstring
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 9 Mar 2016 20:49:24 +0000 (15:49 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 9 Mar 2016 20:49:24 +0000 (15:49 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/utils.sh

index 56fe622e9c8a842f9b6a53748be7f9397b370a58..3964e3b12820901957d68f1bf1bbe91497a99b88 100644 (file)
@@ -88,7 +88,7 @@ function validate_kernel_version ()
 function randstring()
 {
        [ "$2" == "0" ] && CHAR="[:alnum:]" || CHAR="[:graph:]"
 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
 }
 
        echo
 }
 
This page took 0.034273 seconds and 4 git commands to generate.