invoke: correctly infer version for 0.1.0-vintage plugins

Older plugins return a known error when issued the VERSION command.
Capture this error and report it as a 0.1.0 version plugin.
This commit is contained in:
Gabe Rosenhouse
2016-09-02 16:01:22 -04:00
parent 2142c076ab
commit f467134838
3 changed files with 84 additions and 2 deletions

View File

@ -25,7 +25,7 @@ import (
. "github.com/onsi/gomega"
)
var _ = Describe("Executing a plugin", func() {
var _ = Describe("Executing a plugin, unit tests", func() {
var (
pluginExec *invoke.PluginExec
rawExec *fakes.RawExec