2 # SPDX-License-Identifier: BSD-3-Clause
3 # Copyright 2016, Olivier MATZ <zer0@droids-corp.org>
8 while [ ${SEED} -gt 0 ]; do
9 CMD="./build/test --random-alloc-fail=1 --seed=${SEED} $*"
10 ${CMD} --log-level=0 || (
11 echo "=== test failed, replay seed=${SEED} with logs ===" &&
12 ${CMD} --log-level=6 ||
13 echo "=== test failed: ${CMD}" &&
17 SEED=$((SEED-1)) && continue