]> git.lttng.org Git - lttng-tools.git/commit
tests: Avoid failing on loaded modules when kernel tests are skipped
authorKienan Stewart <kstewart@efficios.com>
Wed, 19 Feb 2025 20:23:49 +0000 (15:23 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 21 Feb 2025 22:24:53 +0000 (22:24 +0000)
commit3821394295d4cf08b696dbc29e9d44d20f657ae1
tree114fd76c187989600cf9f6c426161dfc3e97f8ed
parent593cef8a1fa1b8a2880d50aaa2ff796767317d9e
tests: Avoid failing on loaded modules when kernel tests are skipped

In the future I would like to be able to run lttng-sessiond of the
container host for various reasons. When loaded on the host as the
root user, the lttng-modules are loaded when available - and this is
visible inside the containers which share the kernel. Some tests
validate that the modules are unloaded even if the kernel testing has
been skipped.

The second part of this change limits the possible PID search space to
those started by the current user. This avoids situations where a
non-privileged user tries to kill the lttng-sessiond run by root.

Change-Id: I0cec2e385f37c62d8961488751805b1248ce2687
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/utils.sh
This page took 0.029183 seconds and 4 git commands to generate.