8000 TestBuildAddTarXz(Gz): call xz with '-k' due to bug by ahmetb · Pull Request #10755 · moby/moby · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

TestBuildAddTarXz(Gz): call xz with '-k' due to bug #10755

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

Merged
merged 1 commit into from
Feb 13, 2015
Merged

TestBuildAddTarXz(Gz): call xz with '-k' due to bug #10755

merged 1 commit into from
Feb 13, 2015

Conversation

ahmetb
Copy link
Contributor
@ahmetb ahmetb commented Feb 12, 2015

TestBuildAddTarXz/TestBuildAddTarXzGz make exec calls like
'cd %SOME_TEMP_DIR%; xz test.gz' but this fails when called
from integration-cli tests (doesn't fail from msys or cmd shell)
when executed on Windows.

It fails with error: "xz: test.tar: Cannot remove: Permission denied."
Proposing workaround of using the xz --keep argument since keeping
test.tar is harmless and it's already in os.TempDir().

If anybody volunteers to see what's going on, console log is here:
https://jenkins.dockerproject.com/job/Windows-PRs/31/console
I can repro this as well but can't exactly figure out why it happens
only when it's called via go test.

Signed-off-by: Ahmet Alp Balkan ahmetalpbalkan@gmail.com
Label: #windows
Cc: @jfrazelle @unclejack @tiborvass

TestBuildAddTarXz/TestBuildAddTarXzGz make exec calls like
'cd %SOME_TEMP_DIR%; xz test.gz' but this fails when called
from integration-cli tests (doesn't fail from msys or cmd shell).

It fails with error: "xz: test.tar: Cannot remove: Permission denied."
Proposing workaround of using the `xz --keep` argument since keeping
test.tar is harmless and it's already in os.TempDir().

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
@ahmetb
Copy link
Contributor Author
ahmetb commented Feb 13, 2015

@jfrazelle this fixed the tests:

  • TestBuildAddTarXz
  • TestBuildAddTarXzGz

https://jenkins.dockerproject.com/job/Windows-PRs/32/console

[PASSED]: build - ADD tar.xz
[PASSED]: build - ADD tar.xz.gz

😂

@jessfraz
Copy link
Contributor

LGTM

@jessfraz
Copy link
Contributor

:D

@tiborvass
Copy link
Contributor

LGTM

tiborvass added a commit that referenced this pull request Feb 13, 2015
…XzGz-fix

TestBuildAddTarXz(Gz): call xz with '-k' due to bug
@tiborvass tiborvass merged commit 2b5dfb3 into moby:master Feb 13, 2015
@ahmetb ahmetb deleted the win-cli/TestBuildAddTarXzGz-fix branch February 13, 2015 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0