cu-ecen-aeld / assignment-autotest

Auto test code for assignments, using the Unity automated test framework
MIT License
3 stars 20 forks source link

cat /dev/urandom holding up test #23

Closed NickCody closed 1 month ago

NickCody commented 1 year ago

This line blocks indefinitely:

https://github.com/cu-ecen-aeld/assignment-autotest/blob/master/test/assignment1/assignment-test.sh#L30

Its causing local tests to block forever and never finish also, the github action is also never finishing, This fix seems to work but I don't have permissions to update this repo:

dir_name=$(dd bs=30 count=1 status=none if=/dev/urandom | tr -dc 'a-zA-Z0-9')
dwalkes commented 1 month ago

See https://github.com/cu-ecen-aeld/assignment-autotest/pull/24