fix(chv): 完整 Chromium 检测认 CFT 布局 chrome-linux64
Playwright 1.64.1 下的 chrome-linux64.zip 解压为 chrome-linux64/ chrome,旧检查只认 chrome-linux/chrome:数据盘上 403M 完整版 已装好(含 DEPENDENCIES_VALIDATED)仍报未安装、mount_full 误 回落(2026-11-08 构建 #8 驱动实证)。两种布局都认;驱动安装 步在仍未装好时重试一次(客机慢出口 CDN 30 秒超时是抖动)。
This commit is contained in:
1 parent
9d986becaf
commit
0100ffe207
2 files changed
+21
-5
No files matched your search
@@ -203,6 +203,17 @@ class FullBrowsersDirTest(unittest.TestCase):
|
||||
open(exe, "w").write("x")
|
||||
self.assertEqual(BROWSER.full_chromium_executable(tmp), exe)
|
||||
|
||||
def test_executable_found_in_cft_layout(self):
|
||||
# Playwright 1.64.1 的 CFT 包解压为 chrome-linux64/chrome。
|
||||
with tempfile.TemporaryDirectory() as tmp:
|
||||
exe_dir = os.path.join(
|
||||
tmp, "chromium-1248", "chrome-linux64")
|
||||
os.makedirs(exe_dir)
|
||||
exe = os.path.join(exe_dir, "chrome")
|
||||
open(exe, "w").write("x")
|
||||
self.assertEqual(BROWSER.full_chromium_executable(tmp), exe)
|
||||
self.assertTrue(BROWSER.full_chromium_present(tmp))
|
||||
|
||||
def test_status_reports_data_disk_dir(self):
|
||||
with tempfile.TemporaryDirectory() as tmp:
|
||||
agent, _c, _h = _agent([FakePage()], tmp,
|
||||
|
||||
Reference in new issue
Block a user