diff options
author | Brian Behlendorf <[email protected]> | 2018-01-12 09:36:26 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2018-01-12 09:36:26 -0800 |
commit | e1a0850c3570ae53df5779bc656f17b98b86f160 (patch) | |
tree | d17b3ab882718b22d049cd07e7581eda2f76af7a /scripts | |
parent | 6df9f8ebd73c05da627144bcc3823e6fe980cd75 (diff) |
Force ztest to always use /dev/urandom
For ztest, which is solely for testing, using a pseudo random
is entirely reasonable. Using /dev/urandom ensures the system
entropy pool doesn't get depleted thus stalling the testing.
This is a particular problem when testing in VMs.
Reviewed-by: Tim Chase <[email protected]>
Reviewed by: Thomas Caputi <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #7017
Closes #7036
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/zloop.sh | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/scripts/zloop.sh b/scripts/zloop.sh index b6f6fc994..2fcc807cd 100755 --- a/scripts/zloop.sh +++ b/scripts/zloop.sh @@ -148,15 +148,6 @@ function store_core fi } -rngdpid="" -function on_exit -{ - if [ -n "$rngdpid" ]; then - kill -9 "$rngdpid" - fi -} -trap on_exit EXIT - # parse arguments # expected format: zloop [-t timeout] [-c coredir] [-- extra ztest args] coredir=$DEFAULTCOREDIR @@ -205,9 +196,6 @@ or_die rm -f ztest.history or_die rm -f ztest.ddt or_die rm -f ztest.cores -# start rngd in the background so we don't run out of entropy -or_die read -r rngdpid < <(rngd -f -r /dev/urandom & echo $!) - ztrc=0 # ztest return value foundcrashes=0 # number of crashes found so far starttime=$(date +%s) |