mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-07 08:49:37 +08:00
feat: add initialization of nil fields in summary data to prevent template execution errors
This commit is contained in:
@@ -384,6 +384,9 @@ func (dev *AndroidDevice) getPackageVersion(packageName string) (string, error)
|
||||
}
|
||||
|
||||
func (dev *AndroidDevice) getPackagePath(packageName string) (string, error) {
|
||||
if packageName == "" {
|
||||
return "", errors.Wrap(code.InvalidParamError, "packageName is empty")
|
||||
}
|
||||
output, err := dev.Device.RunShellCommand("pm", "path", packageName)
|
||||
if err != nil {
|
||||
return "", errors.Wrap(err, "get package path failed")
|
||||
|
||||
Reference in New Issue
Block a user