Peach: Local-first video metadata scraper and media manager.
test(release): 推送失败夹具按 UTF-8 输出
longmeidao6671f3b01282
diff --git a/tests/test_release_candidate.py b/tests/test_release_candidate.pyindex c9be3f940..739192739 100644--- a/tests/test_release_candidate.py+++ b/tests/test_release_candidate.py@@ -176,7 +176,9 @@ class DockerPublicationTests(unittest.TestCase):"candidate": {"identity": {"pipeline": "7"}, "docker": {"image_id": image["Id"]}}}(root / "build/ci-artifacts/release-candidate.json").write_text(json.dumps(receipt))driver = root / "driver.ps1"- driver.write_text('''function docker {+ # 重定向时 pwsh 按系统代码页输出,中文 Windows 上失败消息是 GBK;按 UTF-8 读要先切换。+ driver.write_text('''[Console]::OutputEncoding = [Text.UTF8Encoding]::new($false)+function docker {param([Parameter(Position=0, ValueFromRemainingArguments=$true)][string[]]$DockerArgs,[Parameter(ValueFromPipeline=$true)][string]$LoginInput)Add-Content -LiteralPath calls.log -Value ($DockerArgs -join ' ')