mirror of
https://github.com/containers/skopeo.git
synced 2025-07-20 01:19:46 +00:00
cmd: skopeo: fix version
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
6d7c93acf7
commit
064d37134b
@ -5,7 +5,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/Sirupsen/logrus"
|
"github.com/Sirupsen/logrus"
|
||||||
"github.com/containers/image/version"
|
"github.com/projectatomic/skopeo/version"
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/go-check/check"
|
"github.com/go-check/check"
|
||||||
|
"github.com/projectatomic/skopeo/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -70,7 +71,7 @@ func (s *SkopeoSuite) TearDownTest(c *check.C) {
|
|||||||
//func skopeoCmd()
|
//func skopeoCmd()
|
||||||
|
|
||||||
func (s *SkopeoSuite) TestVersion(c *check.C) {
|
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")
|
assertSkopeoSucceeds(c, wanted, "--version")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user