Fixed one small typo of docker_cli_build_test.go
Signed-off-by: André Martins <martins@noironetworks.com>
This commit is contained in:
parent
c03d6f57b6
commit
ab4bc988bc
1 changed files with 2 additions and 2 deletions
|
@ -1721,10 +1721,10 @@ func TestBuildWithInaccessibleFilesInContext(t *testing.T) {
|
||||||
t.Fatalf("failed to chown directory to root: %s", err)
|
t.Fatalf("failed to chown directory to root: %s", err)
|
||||||
}
|
}
|
||||||
if err = os.Chmod(pathToDirectoryWithoutReadAccess, 0444); err != nil {
|
if err = os.Chmod(pathToDirectoryWithoutReadAccess, 0444); err != nil {
|
||||||
t.Fatalf("failed to chmod directory to 755: %s", err)
|
t.Fatalf("failed to chmod directory to 444: %s", err)
|
||||||
}
|
}
|
||||||
if err = os.Chmod(pathToFileInDirectoryWithoutReadAccess, 0700); err != nil {
|
if err = os.Chmod(pathToFileInDirectoryWithoutReadAccess, 0700); err != nil {
|
||||||
t.Fatalf("failed to chmod file to 444: %s", err)
|
t.Fatalf("failed to chmod file to 700: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
buildCmd := exec.Command("su", "unprivilegeduser", "-c", fmt.Sprintf("%s build -t %s .", dockerBinary, name))
|
buildCmd := exec.Command("su", "unprivilegeduser", "-c", fmt.Sprintf("%s build -t %s .", dockerBinary, name))
|
||||||
|
|
Loading…
Add table
Reference in a new issue