Test fix: ignore stderr at every step of randstring
[lttng-tools.git] / 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:]"
-       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
 }
 
This page took 0.030861 seconds and 4 git commands to generate.