`make test` fails on Linux (Ubuntu20.04) ext4 with mounted ntfs
還沒有人認領這個 Issue。
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
I have a dual-boot setup, where my Ubuntu 20.04 is on a ext4 FS and I have a data partition that is ntfs (for compat with Windows).
When I check out and build cpython on the data partition a bunch of tests fail with an OSError.
It seems to be related to the fact that the test suite creates the filenames as bytes assuming "utf-8" but ntfs uses "utf-16".
I have attached the log of the test run, which shows the failing tests.
P.S.: I also have encrypted the data partition with Veracrypt but I don't expect this to be relevant for this issue (but one never knows)
test_log.txt
cc @encukou
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從隨附的 test_log.txt 以及在 Ubuntu 20.04 上使用位於 NTFS 分割區的 CPython checkout 執行 make test 時失敗的測試開始。將這些失敗與 ext4 上的 checkout 進行比較,並判斷涉及哪些檔案系統假設。當受影響的測試案例在所回報的 NTFS 設定下不再失敗,且不會導致 ext4 執行出現回歸時,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- operating-systems, testing-qa
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100