mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #10533 from noironetworks/Fixes-one-failing-test
Fixed one test that was causing error
This commit is contained in:
commit
1da2a53a24
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)
|
||||
}
|
||||
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 {
|
||||
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))
|
||||
|
|
Loading…
Add table
Reference in a new issue