From: Frank Ch. Eigler Date: Wed, 16 Jun 2021 14:49:49 +0000 (-0400) Subject: debuginfod tests: tolerate 000-perm files in cache-copy test X-Git-Tag: elfutils-0.186~75 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3b8f0874295355da9aba504345be1663fe28abcb;p=thirdparty%2Felfutils.git debuginfod tests: tolerate 000-perm files in cache-copy test It appears possible for 000-permission files to sneak into the test debuginfod-cache, which cp (or find|cpio) refuse to copy. These files are OK not to copy, so ignore the error and proceed. Signed-off-by: Frank Ch. Eigler --- diff --git a/tests/run-debuginfod-find.sh b/tests/run-debuginfod-find.sh index 6e9c4875a..c9ee11b1f 100755 --- a/tests/run-debuginfod-find.sh +++ b/tests/run-debuginfod-find.sh @@ -260,7 +260,9 @@ fi # A cache at the old default location ($HOME/.debuginfod_client_cache) should take # priority over $HOME/.cache, $XDG_CACHE_HOME. -cp -r $DEBUGINFOD_CACHE_PATH tmphome/.debuginfod_client_cache +cp -vr $DEBUGINFOD_CACHE_PATH tmphome/.debuginfod_client_cache || true +# ||true is for tolerating errors, such a valgrind or something else +# leaving 000-perm files in there # Add a file that doesn't exist in $HOME/.cache, $XDG_CACHE_HOME. mkdir tmphome/.debuginfod_client_cache/deadbeef