1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

#14474 skip DockerSuite.TestRunCapAddCHOWN on lxc

Signed-off-by: Zhang Kun <zkazure@gmail.com>
This commit is contained in:
Zhang Kun 2015-07-23 00:28:53 +08:00 committed by Jessica Frazelle
parent 44e327b29e
commit 0547b5fb2a

View file

@ -2478,6 +2478,7 @@ func (s *DockerSuite) TestDevicePermissions(c *check.C) {
}
func (s *DockerSuite) TestRunCapAddCHOWN(c *check.C) {
testRequires(c, NativeExecDriver)
out, _ := dockerCmd(c, "run", "--cap-drop=ALL", "--cap-add=CHOWN", "busybox", "sh", "-c", "adduser -D -H newuser && chown newuser /home && echo ok")
if actual := strings.Trim(out, "\r\n"); actual != "ok" {