From 3b8f0874295355da9aba504345be1663fe28abcb Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Wed, 16 Jun 2021 10:49:49 -0400 Subject: [PATCH] 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 --- tests/run-debuginfod-find.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.47.2