mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-31 13:54:27 +01:00
antithesis: Add shuffle-run.sh helper script
This commit is contained in:
13
antithesis-tests/stress-composer/shuffle-run.sh
Executable file
13
antithesis-tests/stress-composer/shuffle-run.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user