Whamcloud - gitweb
LU-10399 test: use /dev/urandom in sanity-hsm test_1b() 56/30556/3
authorJohn L. Hammond <john.hammond@intel.com>
Fri, 15 Dec 2017 18:48:21 +0000 (12:48 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 4 Jan 2018 02:49:29 +0000 (02:49 +0000)
In sanity-hsm test_1b() use /dev/urandom instead of /dev/random so we
won't have to wait for the second law of thermodynamics to become
true.

Test-Parameters: trivial testlist=sanity-hsm
Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ib64691fd6ee1a172c631ffa55956e1d69f24d349
Reviewed-on: https://review.whamcloud.com/30556
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Quentin Bouget <quentin.bouget@cea.fr>
lustre/tests/sanity-hsm.sh

index 0f8c44f..bd7eedd 100755 (executable)
@@ -1063,7 +1063,7 @@ test_1b() {
        local f=$DIR/$tdir/$tfile
        rm -f $f
 
-       dd if=/dev/random of=$f bs=1M count=1 conv=sync ||
+       dd if=/dev/urandom of=$f bs=1M count=1 conv=sync ||
                error "failed to create file"
        local fid=$(path2fid $f)