From 5c22aed3f076544f3d6d276093b51225d5851b2e Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Mon, 8 Jan 2018 11:53:17 +0530 Subject: 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 --- tests/basic/ec/ec-fix-openfd.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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 -- cgit