From a543a131a6d1950311fefea5be9c1473866284d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Cern=C3=BD?= Date: Thu, 3 Sep 2026 15:08:40 +0200 Subject: [PATCH] Fix test test_sysctl_probe_all.sh The test `probes/sysctl/test_sysctl_probe_all.sh` fails in CI on Rawhide. The root cause is that the exit code of the `sysctl` command is 1, which causes the test script to termianate because it has `set -e -o pipefail`. --- tests/probes/sysctl/test_sysctl_probe_all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/probes/sysctl/test_sysctl_probe_all.sh b/tests/probes/sysctl/test_sysctl_probe_all.sh index 348f3d6b9b..630e331a7b 100755 --- a/tests/probes/sysctl/test_sysctl_probe_all.sh +++ b/tests/probes/sysctl/test_sysctl_probe_all.sh @@ -49,7 +49,7 @@ function perform_test { # sysctl has duplicities in output # hide permission errors like: "sysctl: permission denied on key 'fs.protected_hardlinks'" # kernel parameters might use "/" and "." separators interchangeably - normalizing - sysctl -a --deprecated 2> /dev/null | tr "/" "." | cut -d "=" -f 1 | tr -d " " | sort -u > "$sysctlNames" + sysctl -a --deprecated 2> /dev/null | tr "/" "." | cut -d "=" -f 1 | tr -d " " | sort -u > "$sysctlNames" || true ;; *) return 255