mirror of
https://github.com/Niko1221/Strata.git
synced 2026-11-07 18:35:04 -10:00
tools tests: no WSL in the unsloth tests, and the HIP zip test names the engine for the platform (#974 #975)
This commit is contained in:
1 parent
bae372b9aa
commit
d1ec32b4ff
2 files changed
+2
-1
No files matched your search
@@ -326,7 +326,7 @@ class WindowsDetection(unittest.TestCase):
|
||||
|
||||
def publish(meta):
|
||||
with zipfile.ZipFile(pub / setup.WIN_HIP_ASSET, "w") as z:
|
||||
z.writestr("strata.exe", "engine")
|
||||
z.writestr(setup.EXE, "engine") # #975: "strata" on Linux
|
||||
z.writestr("strata-device.exe", "probe")
|
||||
z.writestr("rocm/bin/amdhip64_7.dll", "dll")
|
||||
z.writestr("BUILD.json", json.dumps(meta))
|
||||
|
||||
@@ -181,6 +181,7 @@ class Base(unittest.TestCase):
|
||||
mock.patch.object(setup, "page_file_gb", lambda: 16.0),
|
||||
mock.patch.object(setup, "free_gb", lambda p: free),
|
||||
mock.patch.object(setup, "rotational_disk", lambda p: None), # #605: not the test PC's disk
|
||||
mock.patch.object(setup, "is_wsl", lambda: False), # #974: the tests are not run inside WSL
|
||||
mock.patch.object(setup, "pip_install", lambda *a, **k: None),
|
||||
mock.patch.object(setup, "get_llama_cpp", lambda: self.t / "llama.cpp"),
|
||||
mock.patch.object(setup, "get_prebuilt", lambda *a, **k: eng),
|
||||
|
||||
Reference in new issue
Block a user