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:
@@ -831,7 +831,9 @@ verify_pressure_report() {
|
||||
run_capacity_round() {
|
||||
local profile=$1
|
||||
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_stop=$temporary_root/pressure-stop
|
||||
local pressure_pid status=0
|
||||
|
||||
Reference in New Issue
Block a user