Rewrite TestBuildWithInaccessibleFilesInContext to not use fixtures
Signed-off-by: Alexandr Morozov <lk4d4@docker.com> Upstream-commit: 51a56399f6384decee03a7e1aa56a3f46cb7c63f Component: engine
This commit is contained in:
@ -440,6 +440,9 @@ func fakeContext(dockerfile string, files map[string]string) (*FakeContext, erro
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := os.Chmod(tmp, 0755); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ctx := &FakeContext{tmp}
|
||||
for file, content := range files {
|
||||
if err := ctx.Add(file, content); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user