diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2018-01-08 11:53:17 +0530 |
---|---|---|
committer | Xavier Hernandez <jahernan@redhat.com> | 2018-01-19 07:50:16 +0100 |
commit | c5ed8dfeb1168e764e53a69eb3ac564e8d0172bf (patch) | |
tree | 15ff52b34787c6f84593f4b285cfc01adacb9c6c | |
parent | 51dfc9c789b8405f595a337eade938aedcb449c4 (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.
Backport of:
>BUG: 1431955
BUG: 1533023
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Change-Id: I9145b17f77f09d0ab71816ae249c69b8fe14c1a5
-rw-r--r-- | tests/basic/ec/ec-fix-openfd.t | 2 |
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 |