Unverified Commit 56344f31 authored by Lemon-miaow's avatar Lemon-miaow
Browse files

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

parent 54942f30
Loading
Loading
Loading
Loading
+1 −1
Changes for deploy/bootstrap_test.sh: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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