|
The instability can be repeated with the following script:
#!/bin/bash
|
|
runOutputScript() {
|
local num=$1
|
echo "Running output script: ${num}"
|
./mtr --force --max-test-fail=1 --suite-timeout=999999999 --testcase-timeout=99999999 --parallel=1 --debug-sync-timeout=30 --repeat=1000 --vardir=$PWD/var-$num innodb.deadlock_victim_race > $PWD/out-$num 2>&1
|
}
|
|
trap "exit" INT TERM ERR
|
trap "kill 0" EXIT
|
|
i=300
|
while [ $i -ne 0 ];
|
do
|
runOutputScript $i &
|
i=$[$i-1]
|
done
|
|
wait
|
As we can't develop test for test, the above script can be used to check if the fix works.
|