run-sbl: T timeout for test runs

This commit is contained in:
SashegDev
2026-09-11 15:46:29 +00:00
parent 444a39d8d0
commit 4ff0511da1
+7
View File
@@ -13,6 +13,13 @@ if [ ! -f "$IMG" ]; then
exit 1 exit 1
fi fi
shift 2>/dev/null || true shift 2>/dev/null || true
# timeout для тестовых прогонов (0 = без ограничения)
T=${T:-15}
if [ "$T" != "0" ]; then
exec timeout "$T" "$QEMU" -M saimaa,sbl1="fw/img/patch/img0_${B}.elf",sblmain=0x802f63f \
-m 512 -display none -monitor none -serial file:uart.log \
-drive file="$IMG",if=sd,format=raw "$@" 2>&1
fi
exec "$QEMU" -M saimaa,sbl1="fw/img/patch/img0_${B}.elf",sblmain=0x802f63f \ exec "$QEMU" -M saimaa,sbl1="fw/img/patch/img0_${B}.elf",sblmain=0x802f63f \
-m 512 -display none -monitor none -serial file:uart.log \ -m 512 -display none -monitor none -serial file:uart.log \
-drive file="$IMG",if=sd,format=raw "$@" 2>&1 -drive file="$IMG",if=sd,format=raw "$@" 2>&1