invoke: backfill tests for plugin execution
This commit is contained in:
@ -26,6 +26,7 @@ import (
|
||||
type Debug struct {
|
||||
ReportResult string
|
||||
ReportError string
|
||||
ReportStderr string
|
||||
Command string
|
||||
CmdArgs skel.CmdArgs
|
||||
}
|
||||
|
@ -51,6 +51,8 @@ func debugBehavior(args *skel.CmdArgs, command string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
os.Stderr.WriteString(debug.ReportStderr)
|
||||
|
||||
if debug.ReportError != "" {
|
||||
return errors.New(debug.ReportError)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user