diff --git a/tests/test_ggml.py b/tests/test_ggml.py index 94a69b5..e97254f 100644 --- a/tests/test_ggml.py +++ b/tests/test_ggml.py @@ -205,6 +205,7 @@ class InstallProgram(Local): # These fixtures are Ubuntu release archives. Keep checking that path # on every host, including the Mac that checks the macOS backend. self.patch_attr(sys, "platform", "linux") + self.patch_attr(ggml.platform, "machine", lambda: "x86_64") # Built once, because the release listing has to publish its checksum # and a tarball is not the same bytes twice. self.archive = tarball({ diff --git a/tests/test_packaging.py b/tests/test_packaging.py index 2d63e6e..f9addff 100644 --- a/tests/test_packaging.py +++ b/tests/test_packaging.py @@ -21,7 +21,8 @@ WORKFLOW = ROOT / ".github" / "workflows" / "whisper-vulkan.yml" class WhisperVulkanPackaging(unittest.TestCase): - @unittest.skipUnless(shutil.which("bash"), "bash is unavailable") + @unittest.skipUnless(sys.platform != "win32" and shutil.which("bash"), + "bash syntax check is unavailable") def test_the_release_scripts_parse_as_shell(self): for name in ("build-package.sh", "validate-package.sh", "smoke-runtime.sh"): @@ -108,6 +109,7 @@ class WhisperVulkanPackaging(unittest.TestCase): self.assertIn("libvulkan-dev=", dockerfile) self.assertIn("shaderc=", dockerfile) key = (PACKAGING / "lunarg-signing-key-pub.asc").read_bytes() + key = key.replace(b"\r\n", b"\n") self.assertEqual( "aa1c3c29673140e77f0d6a9aaeed5d9b5621e305ead51c59fae4458bbb4df92b", hashlib.sha256(key).hexdigest(),