test/e2e: skip "podman cp --pid=host file" for remote

Same issue as "podman cp from ctr chown" - the test fails when copying
a file from a container to an existing file on the host. Remote cp
tries to create a directory at the destination, resulting in:
  Error: mkdir /tmp/746758151: not a directory

This is the same bug in the remote cp implementation where it doesn't
handle copying to an existing file path. Fix exists in commit
b0836ab624 but hasn't been merged yet.

Skip the test for remote until the fix is integrated.

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
Lokesh Mandvekar 2026-02-02 18:33:35 +05:30 • committed by Chris Evich
parent 19ba835c4d
commit e388181e35
No known key found for this signature in database
GPG key ID: 03EDC70FD578067F

View file

@ -93,6 +93,7 @@ var _ = Describe("Podman cp", func() {
// Copy a file to the container, then back to the host in --pid=host
It("podman cp --pid=host file", func() {
SkipIfRemote("podman-remote cp fails when copying file to existing file path")
SkipIfRootlessCgroupsV1("Not supported for rootless + CgroupsV1")
srcFile, err := ioutil.TempFile("", "")
Expect(err).To(BeNil())