Files
turso/antithesis-tests/stress-composer/shuffle-run.sh
2025-07-21 12:56:20 +03:00

14 lines
319 B
Bash
Executable File

#!/bin/bash
# Get list of parallel*.py files into an array
test_drivers=($(find . -name "parallel*.py"))
# Exit if no files found
[ ${#test_drivers[@]} -eq 0 ] && exit 1
while true; do
# Pick a random file from the array
file=${test_drivers[$RANDOM % ${#test_drivers[@]}]}
python "$file" || exit $?
done