mirror of
https://github.com/containers/skopeo.git
synced 2025-09-05 00:31:45 +00:00
cmd: skopeo: fix version
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user