Felipe97/llama-cpp-compiled
01.2k
1"""Shared pytest fixtures for QDC on-device test runners."""2 3import os4 5import pytest6from appium import webdriver7 8from utils import options, write_qdc_log9 10 11@pytest.fixture(scope="session", autouse=True)12def driver():13 return webdriver.Remote(command_executor="http://127.0.0.1:4723/wd/hub", options=options)14 15 16def pytest_sessionfinish(session, exitstatus):17 xml_path = getattr(session.config.option, "xmlpath", None) or "results.xml"18 if os.path.exists(xml_path):19 with open(xml_path) as f:20 write_qdc_log("results.xml", f.read())21 