test/e2e: skip "podman cp from ctr chown" for remote

The test fails in podman-remote when copying a file from a container
to an existing file on the host. The remote cp implementation tries
to create a directory at the destination path, resulting in:
  Error: mkdir /tmp/1457882724: not a directory

This is a bug in the remote cp implementation where it doesn't
properly handle copying to an existing file. A fix exists in commit
b0836ab624 (branch cve-441-crio) 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:29:55 +05:30
parent 04ee7173b5
commit 1655f22451
No known key found for this signature in database
GPG key ID: 1C1EDD7CC7C3A0DD

View file

@ -213,6 +213,7 @@ var _ = Describe("Podman cp", func() {
// it to the host and back to the container and make sure that we can
// access it, and (roughly) the right users own it.
It("podman cp from ctr chown ", func() {
SkipIfRemote("podman-remote cp fails when copying file to existing file path")
srcFile, err := os.CreateTemp("", "")
Expect(err).ToNot(HaveOccurred())
defer srcFile.Close()