From: Matteo Croce Date: Wed, 25 Jun 2025 12:42:48 +0000 (+0200) Subject: tests: run test with CAP_BPF X-Git-Tag: v258-rc1~134^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9554ac305239c7baea02d112d2da72b7a97fce41;p=thirdparty%2Fsystemd.git tests: run test with CAP_BPF Add CAP_BPF to tests run with nspawn, so we don't have to use a VM to test BPF calls. --- diff --git a/test/integration-tests/integration-test-wrapper.py b/test/integration-tests/integration-test-wrapper.py index c3b8dbf77e7..99fc420e9a9 100755 --- a/test/integration-tests/integration-test-wrapper.py +++ b/test/integration-tests/integration-test-wrapper.py @@ -617,6 +617,8 @@ def main() -> None: '--credential', f"journal.storage={'persistent' if sys.stdin.isatty() else args.storage}", *(['--runtime-build-sources=no', '--register=no'] if not sys.stdin.isatty() else []), 'vm' if args.vm or os.getuid() != 0 or os.getenv('TEST_PREFER_QEMU', '0') == '1' else 'boot', + *(['--', '--capability=CAP_BPF'] \ + if not args.vm and os.getenv('TEST_PREFER_QEMU', '0') == '0' else []), ] # fmt: skip try: