From d892e78ddac6aeedd856c0192c989849ebc46d54 Mon Sep 17 00:00:00 2001 From: liminfei-amd <91481003+liminfei-amd@users.noreply.github.com> Date: Wed, 29 Jul 2026 21:20:17 +0800 Subject: [PATCH] Fix integrated GPU tests on Windows Signed-off-by: liminfei-amd <91481003+liminfei-amd@users.noreply.github.com> --- tests-unit/comfy_test/model_management_uma_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests-unit/comfy_test/model_management_uma_test.py b/tests-unit/comfy_test/model_management_uma_test.py index 0449583a8..f89055bd3 100644 --- a/tests-unit/comfy_test/model_management_uma_test.py +++ b/tests-unit/comfy_test/model_management_uma_test.py @@ -36,10 +36,10 @@ def install_fake_drm(monkeypatch, cards): files = {} realpaths = {} for card, values in cards.items(): - device_dir = f"/sys/class/drm/{card}/device" - files[f"{device_dir}/vendor"] = values.get("vendor", "0x1002") - files[f"{device_dir}/mem_info_vram_total"] = str(values["vram"]) - files[f"{device_dir}/mem_info_gtt_total"] = str(values["gtt"]) + device_dir = model_management.os.path.join("/sys/class/drm", card, "device") + files[model_management.os.path.join(device_dir, "vendor")] = values.get("vendor", "0x1002") + files[model_management.os.path.join(device_dir, "mem_info_vram_total")] = str(values["vram"]) + files[model_management.os.path.join(device_dir, "mem_info_gtt_total")] = str(values["gtt"]) realpaths[device_dir] = values["realpath"] monkeypatch.setattr(