test(bootstrap): 重复写入 [auth] 键的检查改用 $nl,dash 下不再恒过

This commit is contained in:
Lemon-miaow committed 2026-09-26 15:23:53 +08:00
1 parent 54942f30f3
commit 56344f313b
1 file changed
+1 -1
+1 -1
View File
@@ -1639,7 +1639,7 @@ err="$(run_write "$adir/out.toml" "$adir" 2>&1)"
for key in admin_hostname panel_hostname; do
got="$(grep "^${key} = " "$adir/out.toml")"
case "$got" in
*$'\n'*) echo "FAIL: a long carried [auth] wrote ${key} twice:"; printf '%s\n' "$got"; fails=$((fails + 1)) ;;
*"$nl"*) echo "FAIL: a long carried [auth] wrote ${key} twice:"; printf '%s\n' "$got"; fails=$((fails + 1)) ;;
"") echo "FAIL: a long carried [auth] lost ${key}"; fails=$((fails + 1)) ;;
*) echo "PASS a long carried [auth] writes ${key} once: ${got}" ;;
esac