feat: runcommand新增日志

This commit is contained in:
余泓铮
2024-08-16 14:26:56 +08:00
parent 7b6638ae10
commit a1553d7892
3 changed files with 37 additions and 10 deletions

View File

@@ -13,7 +13,6 @@ import (
"strconv"
"time"
"github.com/httprunner/funplugin/myexec"
"github.com/pkg/errors"
"github.com/rs/zerolog/log"
@@ -475,7 +474,7 @@ func (dev *IOSDevice) StopPcap() string {
func (dev *IOSDevice) Install(appPath string, opts *InstallOptions) (err error) {
for i := 0; i <= opts.RetryTime; i++ {
err = myexec.RunCommand("ideviceinstaller", "-u", dev.UDID, "-i", appPath)
err = builtin.RunCommand("ideviceinstaller", "-u", dev.UDID, "-i", appPath)
if err == nil {
return nil
}
@@ -484,7 +483,7 @@ func (dev *IOSDevice) Install(appPath string, opts *InstallOptions) (err error)
}
func (dev *IOSDevice) Uninstall(bundleId string) error {
return myexec.RunCommand("ideviceinstaller", "-u", dev.UDID, "-U", bundleId)
return builtin.RunCommand("ideviceinstaller", "-u", dev.UDID, "-U", bundleId)
}
func (dev *IOSDevice) forward(localPort, remotePort int) error {