mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-07 08:27:35 +08:00
refactor: android device Init, replace run shell
This commit is contained in:
@@ -1 +1 @@
|
|||||||
v5.0.0-beta-2409252241
|
v5.0.0-beta-2409252246
|
||||||
@@ -189,9 +189,8 @@ type AndroidDevice struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (dev *AndroidDevice) Init() error {
|
func (dev *AndroidDevice) Init() error {
|
||||||
myexec.RunCommand("adb", "-s", dev.SerialNumber, "shell",
|
dev.d.RunShellCommand("ime", "enable", "io.appium.settings/.UnicodeIME")
|
||||||
"ime", "enable", "io.appium.settings/.UnicodeIME")
|
dev.d.RunShellCommand("rm", "-r", env.DeviceActionLogFilePath)
|
||||||
myexec.RunCommand("adb", "-s", dev.SerialNumber, "shell", "rm", "-r", env.DeviceActionLogFilePath)
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user