Merge pull request #10755 from ahmetalpbalkan/win-cli/TestBuildAddTarXzGz-fix

TestBuildAddTarXz(Gz): call xz with '-k' due to bug
Upstream-commit: 2b5dfb3b01605f6ec91efd9a5c2f67166fcd9ff5
Component: engine
This commit is contained in:
Tibor Vass
2015-02-12 19:25:43 -05:00

View File

@ -3877,7 +3877,7 @@ func TestBuildAddTarXz(t *testing.T) {
if err := tw.Close(); err != nil {
t.Fatalf("failed to close tar archive: %v", err)
}
xzCompressCmd := exec.Command("xz", "test.tar")
xzCompressCmd := exec.Command("xz", "-k", "test.tar")
xzCompressCmd.Dir = tmpDir
out, _, err := runCommandWithOutput(xzCompressCmd)
if err != nil {
@ -3930,7 +3930,7 @@ func TestBuildAddTarXzGz(t *testing.T) {
t.Fatalf("failed to close tar archive: %v", err)
}
xzCompressCmd := exec.Command("xz", "test.tar")
xzCompressCmd := exec.Command("xz", "-k", "test.tar")
xzCompressCmd.Dir = tmpDir
out, _, err := runCommandWithOutput(xzCompressCmd)
if err != nil {