-
Notifications
You must be signed in to change notification settings - Fork 18.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
integration-cli: Fix path problems in TestBuildRenamedDockerfile #10873
integration-cli: Fix path problems in TestBuildRenamedDockerfile #10873
Conversation
|
if err != nil { | ||
t.Fatal(err) | ||
} | ||
out, _, err = dockerCmdInDir(t, ctx.Dir, "build", fmt.Sprintf("--file=%s", dirWithNoDockerfile), "-t", "test5", ".") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is supposed to point to an existing file so I'm not sure this is the same testcase.
We may need to create a temp dir+file and then point to that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@duglin ah, makes sense. For some reason I guess I thought /etc/passwd as a dir. :-/ I'll fix this.
You may want to wait for #10555 to get merged first. |
@duglin makes sense. please get it merged :P |
@ahmetalpbalkan I'm twisting @tiborvass 's arm as hard as I can :-) |
ok that was merged you wanna update? |
`TestBuildRenamedDockerfile` tests hard-code unix-style path building. Made use of `path/filepath` to make these tests work on Windows as well. Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
@jfrazelle rebased on top of master and pushed. |
Seems like all failed :) |
well its failing bc we need #10904 ;) |
LGTM |
ping @duglin |
|
Yup - LGTM |
…dDockerfile-fix integration-cli: Fix path problems in TestBuildRenamedDockerfile
TestBuildRenamedDockerfile
tests hard-code unix-stylepath building. Made use of
path/filepath
to make thesetests work on Windows as well.
Signed-off-by: Ahmet Alp Balkan ahmetalpbalkan@gmail.com
cc: @duglin @unclejack @jfrazelle @icecrime @tiborvass