- Brace every $NAME that is directly followed by a non-ASCII character in the shell scripts: bash 3.2 in a UTF-8 locale read the first byte of the following character as part of the variable name and aborted under set -u (#4, #6). - setup.sh and d2rm_pack.py: the shader translation step is complete only when every entry in the completion marker is ok and every library file exists; the script's exit status is no longer hidden by a pipe (#5). - devbattery.sh / devlock.sh: a missing local timeout or ideviceinfo is reported as such and stops at once, instead of being reported as an offline device and polled for up to an hour (#7). - smoke_mac.sh builds its package for iPhone only regardless of the project default. Reported by @SakuraToErii. The setup.sh part of #4 was also submitted by @hubeiqiao in #6. Co-authored-by: hubeiqiao <12777592+hubeiqiao@users.noreply.github.com>
This commit is contained in:
@@ -90,7 +90,7 @@ chk "回前台后完整显示节拍窗 ≥ 2 个且空节拍、丢弃都不新
|
||||
chk "进后台那一刻丢弃的帧数在上限内(只防失控,≤ 12):${2:-无读数} 帧" $([ "${2:--1}" -ge 0 ] && [ "${2:-99}" -le 12 ] && echo 1 || echo 0)
|
||||
chk "回前台后 3D 比例没有因此降档" $(echo "$post" | grep -q "3D 渲染比例 0.7[02]" && echo 0 || echo 1)
|
||||
chk "红行 0(实得 $(grep -c '【红】' "$L"))" $(grep -q '【红】' "$L" && echo 0 || echo 1)
|
||||
chk "动作序列做完、进程还在(退出码 / 存活标志 $trc)" $([ "$trc" = 0 ] && echo 1 || echo 0)
|
||||
chk "动作序列做完、进程还在(退出码 / 存活标志 ${trc})" $([ "$trc" = 0 ] && echo 1 || echo 0)
|
||||
chk "模拟回前台后 2 秒声卡回调有增量:$(grep -o '测试回前台后 2 s 声卡回调 +[0-9]*' "$L" | tail -1)" $([ "$MODE" != sim ] || grep -qE '测试回前台后 2 s 声卡回调 \+[1-9]' "$L" && echo 1 || echo 0)
|
||||
[ "$MODE" = sim ] && for p in $(pidof); do timeout 30 xcrun devicectl device process terminate --device $D --pid $p > /dev/null 2>&1; done
|
||||
echo "日志 $R"; [ $bad = 0 ] && echo "LIFECYCLE OK" || echo "LIFECYCLE RED"; exit $bad
|
||||
|
||||
Reference in New Issue
Block a user