Skip to content

Commit

Permalink
Add NoArm64 testRequires and skip Schema1RegistrySuite on arm64
Browse files Browse the repository at this point in the history
schema1 manifests is not working on ARM64, we should skip integration-cli
tests for schema1 manifests on ARM64.

Signed-off-by: Lei Jitang <leijitang@huawei.com>
  • Loading branch information
coolljt0725 committed Jul 4, 2016
1 parent 7b2c4df commit 9c1566a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion integration-cli/check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ type DockerSchema1RegistrySuite struct {
}

func (s *DockerSchema1RegistrySuite) SetUpTest(c *check.C) {
testRequires(c, DaemonIsLinux, RegistryHosting)
testRequires(c, DaemonIsLinux, RegistryHosting, NotArm64)
s.reg = setupRegistry(c, true, "", "")
s.d = NewDaemon(c)
}
Expand Down
4 changes: 4 additions & 0 deletions integration-cli/requirements.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ var (
func() bool { return os.Getenv("DOCKER_ENGINE_GOARCH") != "arm" },
"Test requires a daemon not running on ARM",
}
NotArm64 = testRequirement{
func() bool { return os.Getenv("DOCKER_ENGINE_GOARCH") != "arm64" },
"Test requires a daemon not running on arm64",
}
NotPpc64le = testRequirement{
func() bool { return os.Getenv("DOCKER_ENGINE_GOARCH") != "ppc64le" },
"Test requires a daemon not running on ppc64le",
Expand Down

0 comments on commit 9c1566a

Please sign in to comment.