fix: playbook 支持 --job_id --job_path --packate_name 参数,支持下载 artifacts 文件
This commit is contained in:
@@ -26,6 +26,7 @@ public class AdbUtil {
|
||||
private static String DEFAULT_DROIDVNC_NG_PKG_NAME = "net.christianbeier.droidvnc_ng";
|
||||
private static String DEFAULT_DROIDVNC_NG_APK_PATH = "./lib/droidvnc-np-2.6.0.apk";
|
||||
private static String DEFAULT_DROIDVNC_NG_DEFAULTS_JSON_PATH = "./lib/droidvnc-np-defaults.json";
|
||||
private static String ANDROID_LAUNCHER = "./lib/android-launcher.py";
|
||||
|
||||
private String serial;
|
||||
private String host;
|
||||
@@ -900,10 +901,10 @@ public class AdbUtil {
|
||||
}
|
||||
|
||||
|
||||
public CommandResult execPlaybook(String playbookPath, File logFile) {
|
||||
public CommandResult execPlaybook(String playbookPath, String tid, String packageName, File logFile) {
|
||||
log.info("[execPlaybook] [begin!] [serial:{}]", this.getSerial());
|
||||
List<String> command = new AdbCommandBuilder("airtest")
|
||||
.buildRunPlaybook(playbookPath, this.getSerial())
|
||||
List<String> command = new AdbCommandBuilder("python")
|
||||
.buildRunPlaybook(ANDROID_LAUNCHER, playbookPath, tid, packageName, this.getSerial())
|
||||
.build();
|
||||
Process process = commandExec.execForProcess(command);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user