From ccbe37a5a4b3f6654af142f044538e4bdde46e5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0tetiar?= Date: Fri, 26 Apr 2024 07:11:10 +0000 Subject: [PATCH] ci: tests: ulimit.t: whitelist hostapd and wpa_supplicant processes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CI currently reports following issues: ERROR: unlimited core size detected: /sbin/ujail -t 5 -n hostapd -U network -G network -C /etc/capabilities/wpad.json -c -- /usr/sbin/hostapd -s -g /var/run/hostapd/global ERROR: unlimited core size detected: /sbin/ujail -t 5 -n wpa_supplicant -U network -G network -C /etc/capabilities/wpad.json -c -- /usr/sbin/wpa_supplicant -n -s -g /var/run/wpa_supplicant/global ERROR: unlimited core size detected: /usr/sbin/hostapd -s -g /var/run/hostapd/global ERROR: unlimited core size detected: /usr/sbin/wpa_supplicant -n -s -g /var/run/wpa_supplicant/global Which is expected and very well tested upstream, so lets whitelist those processes and while at it, convert the `grep` matching into the regexp to make it shorter. References: PCF-663 References: https://gitlab.com/prpl-foundation/prplos/prplos/-/jobs/6719417516#L133 Signed-off-by: Petr Štetiar --- .gitlab/tests/cram/generic/ulimit.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab/tests/cram/generic/ulimit.t b/.gitlab/tests/cram/generic/ulimit.t index 50ade9271b..fca50a4f6b 100644 --- a/.gitlab/tests/cram/generic/ulimit.t +++ b/.gitlab/tests/cram/generic/ulimit.t @@ -14,5 +14,5 @@ Assure no unlimited core file shell resource limits: > dir=\$(dirname \$file); grep -q -s 'core.*size[[:space:]]*unlimited' \"\$dir/limits\" && \ > echo \"ERROR: unlimited core size detected: \$(cat \$file | tr '\0' ' ')\"; > done \ - > " | grep -v -e netifd -e udhcpc -e wait_for + > " | grep -v -E '(netifd|udhcpc|wait_for|hostapd|wpa_supplicant)' [1]