mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-31 21:39:41 +08:00
fix: gen html report path
This commit is contained in:
@@ -19,15 +19,17 @@ const (
|
||||
hashicorpPyPluginFile = "debugtalk.py" // used for hashicorp python plugin
|
||||
)
|
||||
|
||||
func initPlugin(path string, logOn bool) (plugin funplugin.IPlugin, err error) {
|
||||
func initPlugin(path string, logOn bool) (plugin funplugin.IPlugin, pluginDir string, err error) {
|
||||
// plugin file not found
|
||||
if path == "" {
|
||||
return nil, nil
|
||||
return nil, "", nil
|
||||
}
|
||||
pluginPath, err := locatePlugin(path)
|
||||
if err != nil {
|
||||
return nil, nil
|
||||
return nil, "", nil
|
||||
}
|
||||
// TODO: move pluginDir to funplugin
|
||||
pluginDir = filepath.Dir(pluginPath)
|
||||
|
||||
// found plugin file
|
||||
plugin, err = funplugin.Init(pluginPath, funplugin.WithLogOn(logOn))
|
||||
|
||||
Reference in New Issue
Block a user