add windows installer packaging workflow
This commit is contained in:
1 parent
6279b129cb
commit
87838daad4
8 files changed
+216
-24
No files matched your search
@@ -122,12 +122,13 @@ def start_test_yanghao(self: Any, device_id: str, seconds: int) -> None:
|
||||
seconds = int(seconds or 0)
|
||||
if seconds <= 0:
|
||||
seconds = 60
|
||||
run_cli_path = path_config.get_run_cli_path()
|
||||
run_cli_cmd = path_config.get_run_cli_command()
|
||||
run_cli_path = run_cli_cmd[-1] if run_cli_cmd else path_config.get_run_cli_path()
|
||||
if not os.path.exists(run_cli_path):
|
||||
raise FileNotFoundError(
|
||||
f"run_cli.py not found.\nExpected path: {run_cli_path}\nPlease ensure run_cli.py is in the project root directory."
|
||||
f"run_cli launcher not found.\nExpected path: {run_cli_path}\nPlease ensure run_cli.py is in the source tree or run_cli.exe is in the install directory."
|
||||
)
|
||||
cmd = [sys.executable, run_cli_path, "--test-yanghao-flow", "--test-yanghao-flow-seconds", str(seconds)]
|
||||
cmd = [*run_cli_cmd, "--test-yanghao-flow", "--test-yanghao-flow-seconds", str(seconds)]
|
||||
device_id = resolve_adb_device(find_adb_executable(), device_id)
|
||||
cmd += ["--device-id", device_id]
|
||||
self._start_process(cmd)
|
||||
@@ -137,12 +138,13 @@ def start_test_comment(self: Any, device_id: str, text: str) -> None:
|
||||
if self.is_running():
|
||||
raise RuntimeError("already running")
|
||||
text = str(text or "").strip()
|
||||
run_cli_path = path_config.get_run_cli_path()
|
||||
run_cli_cmd = path_config.get_run_cli_command()
|
||||
run_cli_path = run_cli_cmd[-1] if run_cli_cmd else path_config.get_run_cli_path()
|
||||
if not os.path.exists(run_cli_path):
|
||||
raise FileNotFoundError(
|
||||
f"run_cli.py not found.\nExpected path: {run_cli_path}\nPlease ensure run_cli.py is in the project root directory."
|
||||
f"run_cli launcher not found.\nExpected path: {run_cli_path}\nPlease ensure run_cli.py is in the source tree or run_cli.exe is in the install directory."
|
||||
)
|
||||
cmd = [sys.executable, run_cli_path, "--test-comment"]
|
||||
cmd = [*run_cli_cmd, "--test-comment"]
|
||||
if text:
|
||||
cmd += ["--test-comment-text", text]
|
||||
device_id = resolve_adb_device(find_adb_executable(), device_id)
|
||||
|
||||
Reference in new issue
Block a user