mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-21 04:22:30 +08:00
test: add unittest for adb PushImage/ClearImages
This commit is contained in:
@@ -925,6 +925,7 @@ func (ad *ADBDriver) PushImage(localPath string) error {
|
||||
if err := ad.Device.PushFile(localPath, remotePath); err != nil {
|
||||
return err
|
||||
}
|
||||
// refresh
|
||||
_, _ = ad.Device.RunShellCommand("am", "broadcast",
|
||||
"-a", "android.intent.action.MEDIA_SCANNER_SCAN_FILE",
|
||||
"-d", fmt.Sprintf("file://%s", remotePath))
|
||||
|
||||
Reference in New Issue
Block a user