run-sbl: T timeout for test runs
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user