From bd0ec7ed55a9ec2cd5957e9a9ac3542a9d218dcc Mon Sep 17 00:00:00 2001
From: lixiaobing10051267
Date: Thu, 4 Aug 2016 20:14:15 +0800
Subject: [PATCH] Fatal info not identical with actual chmod intent
Signed-off-by: lixiaobing10051267
---
integration-cli/docker_cli_build_test.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/integration-cli/docker_cli_build_test.go b/integration-cli/docker_cli_build_test.go
index 432309fcab..ffa10fe390 100644
--- a/integration-cli/docker_cli_build_test.go
+++ b/integration-cli/docker_cli_build_test.go
@@ -1614,10 +1614,10 @@ func (s *DockerSuite) TestBuildWithInaccessibleFilesInContext(c *check.C) {
c.Fatalf("failed to chown directory to root: %s", err)
}
if err = os.Chmod(pathToDirectoryWithoutReadAccess, 0444); err != nil {
- c.Fatalf("failed to chmod directory to 755: %s", err)
+ c.Fatalf("failed to chmod directory to 444: %s", err)
}
if err = os.Chmod(pathToFileInDirectoryWithoutReadAccess, 0700); err != nil {
- c.Fatalf("failed to chmod file to 444: %s", err)
+ c.Fatalf("failed to chmod file to 700: %s", err)
}
buildCmd := exec.Command("su", "unprivilegeduser", "-c", fmt.Sprintf("%s build -t %s .", dockerBinary, name))