invoke: backfill tests for plugin execution

This commit is contained in:
Gabe Rosenhouse
2016-08-30 23:52:47 -04:00
parent 9d5e6e60e7
commit d3ecadb860
5 changed files with 158 additions and 3 deletions

View File

@ -26,6 +26,7 @@ import (
type Debug struct {
ReportResult string
ReportError string
ReportStderr string
Command string
CmdArgs skel.CmdArgs
}

View File

@ -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 {