char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
187a45637
char/aliceai-t5-moe
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 (): 13return webdriver .Remote (command_executor = "http://127.0.0.1:4723/wd/hub" ,options = options ) 14 15 16def pytest_sessionfinish (session ,exitstatus ): 17xml_path = getattr (session .config .option ,"xmlpath" ,None )or "results.xml" 18if os .path .exists (xml_path ): 19with open (xml_path )as f : 20write_qdc_log ("results.xml" ,f .read ())