mirror of
https://github.com/qemu/qemu.git
synced 2024-11-29 06:43:37 +08:00
tests/docker: make _copy_with_mkdir accept missing files
Depending on the linker/ldd setup we might get a file with no path. Typically this is the psuedo library linux-vdso.so which doesn't actually exist on the disk. Rather than try and catch these distro specific edge cases just shout about it and try and continue. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20210202134001.25738-4-alex.bennee@linaro.org>
This commit is contained in:
parent
dc23bbc3df
commit
dffccf3d34
@ -103,7 +103,12 @@ def _copy_with_mkdir(src, root_dir, sub_path='.'):
|
||||
pass
|
||||
|
||||
dest_file = "%s/%s" % (dest_dir, os.path.basename(src))
|
||||
copy(src, dest_file)
|
||||
|
||||
try:
|
||||
copy(src, dest_file)
|
||||
except FileNotFoundError:
|
||||
print("Couldn't copy %s to %s" % (src, dest_file))
|
||||
pass
|
||||
|
||||
|
||||
def _get_so_libs(executable):
|
||||
|
Loading…
Reference in New Issue
Block a user