fix: 调整 playbook 执行时serial 参数获取

This commit is contained in:
zhangshuai
2024-10-29 10:37:46 +08:00
parent 5cf1d09260
commit 1d6b710f63

View File

@@ -864,9 +864,9 @@ public class AdbUtil {
}
public CommandResult execPlaybook(String playbookPath) {
log.info("[execPlaybook] [begin!]");
log.info("[execPlaybook] [begin!] [serial:{}]", this.getSerial());
Process process = CommandExec.execForProcess(new AdbCommandBuilder("airtest")
.buildRunPlaybook(playbookPath, this.serial)
.buildRunPlaybook(playbookPath, this.getSerial())
.build());
ExecutorService executor = Executors.newSingleThreadExecutor();