fix(ios): require explicit gateway log target · openclaw/openclaw@1ec291c
vincentkoc
·
2026-06-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +import { readFileSync } from "node:fs"; |
| 2 | +import { describe, expect, it } from "vitest"; |
| 3 | + |
| 4 | +const scriptPath = "scripts/dev/ios-pull-gateway-log.sh"; |
| 5 | + |
| 6 | +describe("scripts/dev/ios-pull-gateway-log.sh", () => { |
| 7 | +it("does not bake local device or bundle identifiers into the log pull helper", () => { |
| 8 | +const script = readFileSync(scriptPath, "utf8"); |
| 9 | + |
| 10 | +expect(script).toContain('DEVICE_UDID="${1:-${OPENCLAW_IOS_DEVICE_UDID:-}}"'); |
| 11 | +expect(script).toContain('BUNDLE_ID="${2:-${OPENCLAW_IOS_BUNDLE_ID:-}}"'); |
| 12 | +expect(script).toContain('DEST="${3:-${OPENCLAW_IOS_GATEWAY_LOG_DEST:-}}"'); |
| 13 | +expect(script).toContain('mktemp -d "${TMPDIR:-/tmp}/openclaw-ios-gateway.XXXXXX"'); |
| 14 | +expect(script).toContain('exit 2'); |
| 15 | +expect(script).not.toMatch(/DEVICE_UDID="\$\{1:-[0-9A-F-]+/u); |
| 16 | +expect(script).not.toMatch(/BUNDLE_ID="\$\{2:-ai\.openclaw\.ios\.dev\.[^}]+/u); |
| 17 | +expect(script).not.toContain("/tmp/openclaw-gateway.log"); |
| 18 | +}); |
| 19 | +}); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。