From 4940e907981c3436f5e19936dcac90c7a32a9e8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20PORTAY?= Date: Thu, 28 Nov 2024 11:29:34 +0100 Subject: [PATCH] Fix "tests: libiamroot.so: conditionize xattr(7) tests" This fixes commit f3c73aae54629b37cc4431d0078a6bade3e2482b. --- tests/tests-libiamroot.so.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tests-libiamroot.so.bash b/tests/tests-libiamroot.so.bash index 188e931a..0cee6faf 100755 --- a/tests/tests-libiamroot.so.bash +++ b/tests/tests-libiamroot.so.bash @@ -176,7 +176,7 @@ export -n IAMROOT_EXEC_IGNORE export -n IAMROOT_PATH_RESOLUTION_IGNORE OS="$(uname -o 2>/dev/null || uname -s 2>/dev/null)" -XATTR="$(command -v getfattr >/dev/null 2>&1 && echo 1)" +XATTR="$(command -v getfattr >/dev/null 2>&1 && echo 1 || echo 0)" PROCFS="$(test -d /proc/1 && ! test -r /proc/1/root && echo 1 || echo 0)" env-root() {