yujuanqin's picture
update scripts
42742c6
raw
history blame contribute delete
321 Bytes
import platform
from pytest import fixture
@fixture(scope="session")
def get_platform():
processor = platform.processor()
if processor.startswith("Intel"):
return "intel"
elif processor.startswith("arm"):
return "apple"
else:
raise ValueError(f"Unsupported platform: {processor}")