mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-19 09:34:18 +01:00
14 lines
319 B
Bash
Executable File
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
|