1 Star 0 Fork 9

syberlogic/arkui-developer-test-tool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
run.py 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
liyujie 提交于 2023-10-23 18:53 . fix
import argparse
from utils import parse_json
from utils import CommandExecute
from build import BuildCodeHandler
from execute import ExecuteTestsHandler
parser = argparse.ArgumentParser()
parser.add_argument("-b", "--build-target", nargs='+', type=str, default=None)
parser.add_argument("-f", "--fast-rebuild", action="store_true")
parser.add_argument("-c", "--coverage", action="store_true")
parser.add_argument("-p", "--push-so", action="store_true")
config = parse_json('config.json')
host = config['personal']['ssh']['host']
port = config['personal']['ssh']['port']
username = config['personal']['ssh']['username']
password = config['personal']['ssh']['password']
command_execute = CommandExecute(host, port, username, password)
args = parser.parse_args()
targets = args.build_target
fast_rebuild = args.fast_rebuild
coverage = args.coverage
push_so = args.push_so
build_code_handler = BuildCodeHandler(command_execute, config)
build_code_handler.process(targets, fast_rebuild, coverage, push_so)
execute_tests_handler = ExecuteTestsHandler(command_execute, config, coverage)
execute_tests_handler.process()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/syberlogic/arkui-developer-test-tool.git
[email protected]:syberlogic/arkui-developer-test-tool.git
syberlogic
arkui-developer-test-tool
arkui-developer-test-tool
master

搜索帮助