feat: release 1.4.0 with isolated upgrades and device discovery
This commit is contained in:
1 parent
a6a3ee2eb0
commit
df66897ff4
41 files changed
+1564
-126
No files matched your search
@@ -153,12 +153,22 @@ def test_chinese_batch_prints_complete_lines_and_preserves_exit_code(tmp_path, e
|
||||
root = tmp_path / "source with spaces!"
|
||||
root.mkdir()
|
||||
shutil.copy2(ROOT / "start-cn.bat", root / "start-cn.bat")
|
||||
(root / "start.bat").write_bytes(
|
||||
f'@echo off\r\nif not "%~1"=="-Mirror" exit /b 19\r\n'
|
||||
f'if not "%~2"=="China" exit /b 20\r\nexit /b {exit_code}\r\n'.encode("ascii")
|
||||
shutil.copy2(ROOT / "start.bat", root / "start.bat")
|
||||
(root / "scripts").mkdir()
|
||||
# Exercise the real Chinese banner/help prologue, stopping before installs,
|
||||
# update checks or downloads. Chinese now belongs to PowerShell, not CMD.
|
||||
prologue = (
|
||||
(ROOT / "scripts/start.ps1")
|
||||
.read_text(encoding="utf-8-sig")
|
||||
.split("# Ensure modern TLS", 1)[0]
|
||||
)
|
||||
(root / "scripts/start.ps1").write_text(
|
||||
prologue + f"\nif ($Mirror -ne 'China') {{ exit 20 }}\nexit {exit_code}\n",
|
||||
encoding="utf-8-sig",
|
||||
)
|
||||
result = subprocess.run(
|
||||
["cmd.exe", "/d", "/c", "call", str(root / "start-cn.bat")],
|
||||
env={**os.environ, "ARTEMIS_NO_PAUSE": "1"},
|
||||
capture_output=True,
|
||||
timeout=15,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user