projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test fix: ignore stderr at every step of randstring
[lttng-tools.git]
/
tests
/
utils
/
utils.sh
diff --git
a/tests/utils/utils.sh
b/tests/utils/utils.sh
index 56fe622e9c8a842f9b6a53748be7f9397b370a58..3964e3b12820901957d68f1bf1bbe91497a99b88 100644
(file)
--- 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:]"
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.024103 seconds
and
5
git commands to generate.