diff options
Diffstat (limited to 'tests/gen_test_cases.sh')
-rwxr-xr-x | tests/gen_test_cases.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gen_test_cases.sh b/tests/gen_test_cases.sh index 19b74472..540fc2a2 100755 --- a/tests/gen_test_cases.sh +++ b/tests/gen_test_cases.sh @@ -35,6 +35,10 @@ function generate_test_signatures { # Generate a file with random bytes for signature tests. function generate_test_file { echo "Generating test file..." + if [ -f "${TEST_FILE}" ]; then + echo "(skipping, file already exists)" + return + fi dd if=/dev/urandom of=${TEST_FILE} bs=${TEST_FILE_SIZE} count=1 } |