Windows:Fix TestRunUserDefaults
Signed-off-by: John Howard <jhoward@microsoft.com> (cherry picked from commit 80fce6d747c5208b42e94ac9e3f22cef28dd8afe) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: fd4670161de8f9947c524138c477177f935c98f2 Component: engine
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
8238697633
commit
90370524f3
@ -715,7 +715,7 @@ func (s *DockerSuite) TestRunExitCode(c *check.C) {
|
||||
func (s *DockerSuite) TestRunUserDefaults(c *check.C) {
|
||||
expected := "uid=0(root) gid=0(root)"
|
||||
if testEnv.OSType == "windows" {
|
||||
expected = "uid=1000(ContainerAdministrator) gid=1000(ContainerAdministrator)"
|
||||
expected = "uid=0(root) gid=0(root) groups=0(root)"
|
||||
}
|
||||
out, _ := dockerCmd(c, "run", "busybox", "id")
|
||||
if !strings.Contains(out, expected) {
|
||||
|
||||
Reference in New Issue
Block a user