char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Shreya JainEnable testing on Snapdragon devices (#21051)187a45637

char/aliceai-t5-moe
562 B20 linesraw
1"""Shared pytest fixtures for QDC on-device test runners."""
2
3import os
4
5import pytest
6from appium import webdriver
7
8from utils import options, write_qdc_log
9
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())