fix(acceptance): 兼容 macOS Bash 3.2

将容量报告路径中的 Bash 4 小写参数展开替换为 POSIX tr,避免验收在提交首轮负载前因 bad substitution 中断。\n\n验证:GNU Bash 3.2.57 实际执行;bash -n;shellcheck -x -P .;git diff --check。
This commit is contained in:
2026-07-31 00:34:02 +08:00
parent 02f9071a37
commit 0e22ccb0b8
+3 -1
View File
@@ -831,7 +831,9 @@ verify_pressure_report() {
run_capacity_round() { run_capacity_round() {
local profile=$1 local profile=$1
local repetition=$2 local repetition=$2
local prefix=$report_root/${profile,,}-$repetition local profile_slug
profile_slug=$(printf '%s' "$profile" | tr '[:upper:]' '[:lower:]')
local prefix=$report_root/$profile_slug-$repetition
local pressure_report=$prefix-pressure.csv local pressure_report=$prefix-pressure.csv
local pressure_stop=$temporary_root/pressure-stop local pressure_stop=$temporary_root/pressure-stop
local pressure_pid status=0 local pressure_pid status=0