feat: init device driver with plugin option

This commit is contained in:
lilong.129
2023-08-11 16:21:32 +08:00
parent 4ac09cd662
commit e01485a846
5 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -538,7 +538,7 @@ func (r *CaseRunner) initUIClient(uuid string, osType string) (client *uixt.Driv
return nil, errors.Wrapf(err, "init %s device failed", osType)
}
client, err = device.NewDriver()
client, err = device.NewDriver(uixt.WithDriverPlugin(r.parser.plugin))
if err != nil {
return nil, err
}