summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2018-01-08 11:53:17 +0530
committerPranith Kumar K <pkarampu@redhat.com>2018-01-08 11:55:15 +0530
commit5c22aed3f076544f3d6d276093b51225d5851b2e (patch)
treed185c9f7d3ab1ba2597886531df653203f040fd7
parent013e06bf99ee1e0e374d140bef5ddc92d62b4418 (diff)
tests: Use /dev/urandom instead of /dev/random for dd
If there's not enough entropy in the system then reading /dev/random would take a significant time since it would take a long time for the /dev/random buffers to get full as is desired in this dd run. Milind found that this test file takes almost a 1000 seconds or more to pass instead of just a minute because of this. BUG: 1431955 Change-Id: I9145b17f77f09d0ab71816ae249c69b8fe14c1a5 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
-rw-r--r--tests/basic/ec/ec-fix-openfd.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/basic/ec/ec-fix-openfd.t b/tests/basic/ec/ec-fix-openfd.t
index b62fbf429c8..c32f9332137 100644
--- a/tests/basic/ec/ec-fix-openfd.t
+++ b/tests/basic/ec/ec-fix-openfd.t
@@ -43,7 +43,7 @@ EXPECT "1" get_fd_count $V0 $H0 $B0/${V0}1 test_file
EXPECT "1" get_fd_count $V0 $H0 $B0/${V0}2 test_file
#Write to file
-dd iflag=fullblock if=/dev/random bs=1024 count=2 >&$fd 2>/dev/null
+dd iflag=fullblock if=/dev/urandom bs=1024 count=2 >&$fd 2>/dev/null
#Test the fd count
EXPECT "1" get_fd_count $V0 $H0 $B0/${V0}0 test_file