From 64ed22a9f5b2922268e9fabc4f107caf52d8bacb Mon Sep 17 00:00:00 2001 From: DKChan <524912269@qq.com> Date: Tue, 3 Nov 2026 08:03:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D(CI=E7=BA=A2=E6=80=81?= =?UTF-8?q?=E8=BF=BD=E7=BB=BF=C2=B7fix-ci-mac=E7=BB=AD):=20=E9=97=B8?= =?UTF-8?q?=E8=84=9A=E6=9C=ACrun=5Fall=5Fgates.sh:367=E7=A9=BA=E6=95=B0?= =?UTF-8?q?=E7=BB=84=E5=B1=95=E5=BC=80bash=20bug=E2=80=94=E2=80=94=5Fuser?= =?UTF-8?q?=5Fargs[@]=E5=9C=A8mac=20bash3.2=C3=97set=20-u=E4=B8=8Bunbound?= =?UTF-8?q?=20variable=E5=9B=9B=E5=88=86=E7=89=87=E7=A7=92=E6=8C=82(?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=9C=AA=E8=B7=91=E5=8D=B3=E7=BA=A2),?= =?UTF-8?q?=E6=94=B9=E5=AE=89=E5=85=A8=E5=B1=95=E5=BC=80=E6=83=AF=E7=94=A8?= =?UTF-8?q?=E6=B3=95(=E7=A9=BA=E5=8F=82=E5=BD=92=E9=9B=B6=E4=B8=8D?= =?UTF-8?q?=E8=B6=8Aset=20-u,=E9=9D=9E=E7=A9=BA=E7=85=A7=E5=B8=B8=E4=BC=A0?= =?UTF-8?q?=E5=8F=82);=20bash=20-n=20=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/run_all_gates.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/run_all_gates.sh b/tools/run_all_gates.sh index b2ad7363..6e867e36 100755 --- a/tools/run_all_gates.sh +++ b/tools/run_all_gates.sh @@ -364,7 +364,7 @@ gate_unit() { # run_all 是 --script 模式,退出码为唯一判据;分 local k for k in $(seq 1 "$_shards"); do ( cd "$REPO" && "$GODOT" --headless --path "$(gate_game_path "$GAME")" --script res://tests/run_all.gd \ - -- "${_user_args[@]}" "--shard=$k" "--shard-count=$_shards" ) \ + -- ${_user_args[@]:+"${_user_args[@]}"} "--shard=$k" "--shard-count=$_shards" ) \ >"$STAMP_DIR/unit_shard_$k.log" 2>&1 & _pids+=($!) done