Skip to content

Commit

Permalink
skip vmfb buffer access test on win32
Browse files Browse the repository at this point in the history
  • Loading branch information
renxida committed Oct 29, 2024
1 parent e2c1dc5 commit 30f2a8e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions shortfin/tests/invocation/vmfb_buffer_access_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import array
import random
import struct
import sys


@pytest.fixture(scope="session")
Expand Down Expand Up @@ -115,14 +116,7 @@ def kvcache_compiled_cpu_path():
input_type="AUTO",
)

# Read the compiled binary
compiled_binary = vmfb_path.read_bytes()

# Create a new temporary file for the final vmfb
final_vmfb = tmp_dir_path / "final_kvcache_cpu.vmfb"
final_vmfb.write_bytes(compiled_binary)

yield final_vmfb
yield vmfb_path


def float_to_float16(f):
Expand Down Expand Up @@ -192,6 +186,10 @@ def create_scalar_device_array(device, value, dtype=sfnp.int64):
return arr


@pytest.mark.skipif(
sys.platform == "win32",
reason="PermissionError: [WinError 5] Access is denied: 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpkuq8cdap\\final_kvcache_cpu.vmfb'",
)
@pytest.mark.parametrize(
"await_before_invoke",
[
Expand Down

0 comments on commit 30f2a8e

Please sign in to comment.