Whamcloud - gitweb
LU-10399 test: use /dev/urandom in sanity-hsm test_1b() 22/30722/2
authorJohn L. Hammond <john.hammond@intel.com>
Fri, 15 Dec 2017 18:48:21 +0000 (12:48 -0600)
committerJohn L. Hammond <john.hammond@intel.com>
Mon, 8 Jan 2018 16:33:37 +0000 (16:33 +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
Lustre-change: https://review.whamcloud.com/30556
Lustre-commit: 54cf0962e286b8f1bcfca490cf828fd126f1fa60

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

index 7587b12..c1ac06f 100755 (executable)
@@ -924,7 +924,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)