Skip to content

Commit f11e5a4

Browse files
crash-tests: prevent the process from getting stuck when there's not enough entropy
The update of the `rand` crate changed the entropy requirements for the test binary used by the crash-tests, and now the binary gets stuck indefinetely waiting for entropy to generate the random file name. Fixed by simply making `/dev/random` a symlink to `/dev/urandom` in the test virtual machine.
1 parent 4d4fde4 commit f11e5a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crash-tests/linux/init.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ if grep -q test.verify /proc/cmdline; then
1717
poweroff -f
1818
fi
1919

20+
ln -sf /dev/urandom /dev/random
21+
2022
echo 'Running test binary'
2123
atomic-write-file-test
2224

0 commit comments

Comments
 (0)