mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-11 18:11:21 +08:00
refactor: move driver/capatibilities options to pkg/uixt/options
This commit is contained in:
@@ -53,7 +53,9 @@ func handleDeviceContext() gin.HandlerFunc {
|
||||
}
|
||||
device.Init()
|
||||
|
||||
driver, err := device.NewDriver(uixt.WithDriverImageService(true), uixt.WithDriverResultFolder(true))
|
||||
driver, err := device.NewDriver(
|
||||
options.WithDriverImageService(true),
|
||||
options.WithDriverResultFolder(true))
|
||||
if err != nil {
|
||||
log.Error().Err(err).Str("platform", platform).Str("serial", serial).
|
||||
Msg("failed to init driver")
|
||||
|
||||
Reference in New Issue
Block a user