summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2020-03-11 12:10:13 -0400
committerPaul Moore <paul@paul-moore.com>2020-03-11 17:13:40 -0400
commit4323e25bca547260747cac82b7b864763a1bc95a (patch)
treeea0dda08921882fc7ade9c0685a091cad2f3eff8 /tests
parentdc2831e8fdcad71d565ba02abf732c8ffd260f66 (diff)
downloadlibseccomp-4323e25bca547260747cac82b7b864763a1bc95a.tar.gz
tests: don't use the "tr" tool
This appears to cause problems in the Travis CI with the aarch64 architecture. Acked-by: Tom Hromatka <tom.hromatka@oracle.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/regression3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/regression b/tests/regression
index ef98c3d..1496294 100755
--- a/tests/regression
+++ b/tests/regression
@@ -272,7 +272,8 @@ function generate_random_data() {
else
rcount=$[ ($RANDOM % 8) + 1 ]
fi
- rdata=$(echo $(</dev/urandom tr -dc A-Za-z0-9 | head -c"$rcount"))
+ rdata=$(dd if=/dev/urandom bs=64 count=1 status=none | \
+ md5sum | awk '{ print $1 }' | head -c"$rcount")
echo "$rdata"
}