From 19cd210ac3611feaae33b6250ef59765a69bcd10 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 15 May 2025 09:06:37 +0200 Subject: [PATCH] cp: context Disable a check in tests/cp/no-ctx.sh It is not relevant for us: * the selinux crate is handling errors * the test says "maybe we should not fail when no context available" --- util/build-gnu.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/util/build-gnu.sh b/util/build-gnu.sh index 22e1df103..cf2bcaa8f 100755 --- a/util/build-gnu.sh +++ b/util/build-gnu.sh @@ -369,3 +369,8 @@ sed -i 's/\/usr\/bin\/tr/$(which tr)/' tests/init.sh # upstream doesn't having the program name in the error message # but we do. We should keep it that way. sed -i 's/echo "changing security context/echo "chcon: changing security context/' tests/chcon/chcon.sh + +# Disable this test, it is not relevant for us: +# * the selinux crate is handling errors +# * the test says "maybe we should not fail when no context available" +sed -i -e "s|returns_ 1||g" tests/cp/no-ctx.sh