mirror of
https://github.com/containers/skopeo.git
synced 2025-07-20 17:39:49 +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"
|
||||
|
||||
"github.com/Sirupsen/logrus"
|
||||
"github.com/containers/image/version"
|
||||
"github.com/projectatomic/skopeo/version"
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
|
@ -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")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user