Skip to content

Commit

Permalink
cat /de/urandom blocks bats tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aojea committed Jun 2, 2021
1 parent 9a160bc commit 751840a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests.bats
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ setup() {
sudo ip netns exec SouthNS ping -c 2 1.1.1.1

# Create file with random data
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 128 | head -n 1 > /tmp/test_short.log
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8128 | head -n 1 > /tmp/test_long.log
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 128 | head -n 1 > /tmp/test_short.log
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 8128 | head -n 1 > /tmp/test_long.log
}

teardown() {
Expand Down

0 comments on commit 751840a

Please sign in to comment.