Browse code

Do not run the seccomp tests that use default.json on non x86 architectures

The generated profile that we check in is for amd64 and i386 architectures
and does not work correctly on arm as it is missing required syscalls,
and also specifies the architectures that are supported. It works on
ppc64le at the moment but better to skip the test as it is likely to
break in future.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>

Justin Cormack authored on 2016/05/25 09:47:30
Showing 1 changed files
... ...
@@ -1076,7 +1076,7 @@ func (s *DockerSuite) TestRunApparmorProcDirectory(c *check.C) {
1076 1076
 // make sure the default profile can be successfully parsed (using unshare as it is
1077 1077
 // something which we know is blocked in the default profile)
1078 1078
 func (s *DockerSuite) TestRunSeccompWithDefaultProfile(c *check.C) {
1079
-	testRequires(c, SameHostDaemon, seccompEnabled)
1079
+	testRequires(c, SameHostDaemon, seccompEnabled, NotArm, NotPpc64le)
1080 1080
 
1081 1081
 	out, _, err := dockerCmdWithError("run", "--security-opt", "seccomp=../profiles/seccomp/default.json", "debian:jessie", "unshare", "--map-root-user", "--user", "sh", "-c", "whoami")
1082 1082
 	c.Assert(err, checker.NotNil, check.Commentf(out))