Files
matrix-screen-controller/移动端相关内容/安卓app/如何安卓测试/run_ui_layout_test.py
T

19 lines
587 B
Python

"""Use the persistent Android semantic test with root input and restored settings."""
from pathlib import Path
import argparse
import subprocess
import sys
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--adb', required=True)
parser.add_argument('--build', type=Path, required=True)
args = parser.parse_args()
return subprocess.run([sys.executable, str(Path(__file__).with_name('run_ble_test.py')),
'--adb', args.adb, '--build', str(args.build), '--test', 'layout']).returncode
if __name__ == '__main__':
raise SystemExit(main())