tests/docker: preserve original name when copying libs
commit3971c70f159e00fa0a311b0a39c3baa1f2d814f4
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 2 Feb 2021 13:39:49 +0000 (2 13:39 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 8 Feb 2021 09:41:00 +0000 (8 09:41 +0000)
treeec119ed733f92f44e2aeecc1db288bbb3af1ba87
parentdffccf3d34467d7280212445e521f458d31ac6a2
tests/docker: preserve original name when copying libs

While it is important we chase down the symlinks to copy the correct
data we can confuse the kernel by renaming the interpreter to what is
in the binary. Extend _copy_with_mkdir to preserve the original name
of the file when asked.

Fixes: 5e33f7fead ("tests/docker: better handle symlinked libs")
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210202134001.25738-5-alex.bennee@linaro.org>
tests/docker/docker.py