Merge pull request #136 from runcom/fix-version

cmd: skopeo: fix version
This commit is contained in:
Antonio Murdaca
2016-06-30 18:02:25 +02:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ import (
"os"
"github.com/Sirupsen/logrus"
"github.com/containers/image/version"
"github.com/projectatomic/skopeo/version"
"github.com/urfave/cli"
)

View File

@@ -6,6 +6,7 @@ import (
"testing"
"github.com/go-check/check"
"github.com/projectatomic/skopeo/version"
)
const (
@@ -70,7 +71,7 @@ func (s *SkopeoSuite) TearDownTest(c *check.C) {
//func skopeoCmd()
func (s *SkopeoSuite) TestVersion(c *check.C) {
wanted := fmt.Sprintf(".*%s version .*", skopeoBinary)
wanted := fmt.Sprintf(".*%s version %s .*", skopeoBinary, version.Version)
assertSkopeoSucceeds(c, wanted, "--version")
}