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>
This commit is contained in:
Lokesh Mandvekar 2026-02-02 18:33:35 +05:30
parent 1655f22451
commit 5bbbbb1eee
No known key found for this signature in database
GPG key ID: 1C1EDD7CC7C3A0DD

View file

@ -92,6 +92,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 := os.CreateTemp("", "")
Expect(err).ToNot(HaveOccurred())